bug fix when rallocm fails
Summary: rallocm sets the value of the second argument even if it has failed to allocate the requested size: https://github.com/jemalloc/jemalloc/blob/898960247a8b2e6534738b7a3a244855f379faf9/src/jemalloc.c#L1903-L1906 As a result newAllocatedCapacity was being set to a value less than the original value and the logic was broken. Test Plan: unit tests pass and my code which was crashing before now works! Reviewed By: soren@fb.com FB internal diff: D1144314
Showing
Please register or sign in to comment