You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above is a roughly cut down version of some production code I'm running; for a given memory size, allocate create a managed_shared_memory of a slightly larger size, construct a Header in it, and allocate the desired size as an aligned buffer (stored in the header) . In 1.86.0 and before it successfully allocates all the memory, but in 1.87.0 it throws bad_alloc. Some investigation shows that the allocated_aligned step only succeeds if the size is <=1/2 of the desired size, and that allocating smaller chunks does allow access to most of the allocated memory (i.e. you can ask for 1/10 of size 9 times but the 10th fails).
The text was updated successfully, but these errors were encountered:
Above is a roughly cut down version of some production code I'm running; for a given memory size, allocate create a
managed_shared_memory
of a slightly larger size, construct aHeader
in it, and allocate the desired size as an aligned buffer (stored in the header) . In 1.86.0 and before it successfully allocates all the memory, but in 1.87.0 it throwsbad_alloc
. Some investigation shows that theallocated_aligned
step only succeeds if the size is <=1/2 of the desired size, and that allocating smaller chunks does allow access to most of the allocated memory (i.e. you can ask for 1/10 of size 9 times but the 10th fails).The text was updated successfully, but these errors were encountered: