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
I think this logic is only correct when __bytes_left is a multiple of 8,
otherwise, __bytes_left would be less than the chunk size of the computed slot.
For example, if __bytes_left is 5, the computed slot is 0, with chunk size of 8, if caller function requests 7 bytes of memory, normally allocator returns 8 bytes of memory, but this chunk has only 5, which would be not enough.
The text was updated successfully, but these errors were encountered:
SGI-STL/SGI-STL V3.3/stl_alloc.h
Lines 450 to 456 in be34aac
I think this logic is only correct when __bytes_left is a multiple of 8,
otherwise, __bytes_left would be less than the chunk size of the computed slot.
For example, if __bytes_left is 5, the computed slot is 0, with chunk size of 8, if caller function requests 7 bytes of memory, normally allocator returns 8 bytes of memory, but this chunk has only 5, which would be not enough.
The text was updated successfully, but these errors were encountered: