I'm trying to use an mmap-like segment to allocate objects on stl containers, for that I'm using boost::interprocess which provides with memory mappings, allocators and anonymous memory mapping support.
A bit like this
My problem is that the anonymous_shared_memory
function here returns something that looks half mapped file and half shared memory(makes sense with mmap :) ) and although both styles work with interprocess allocators this one looks like its missing a segment_manager which does the actual chunk allocation.
As it returns a high-level mapped_region
already mapped in the process but with no manager and no way that I can see to hook in a segment_manager
.
anonymous_shared_memory
does not conform to the protocol interprocess allocators expect, it sounds like a bug. I recommend you to try reporting it. – Unitary