small: sanitized rlist, bug in lsregion, and new region API
Rlist used a hack to implement offsetof() leading to crash under undefined behaviour clang sanitizer. It was fixed in this update. Additionally, region_alloc_object() is changed to return the used size and a new macro region_alloc_array() is added. This small API change is supposed to simplify switching lots of region allocations to aligned versions in scope of #4609. And finally - there was a bug in lsregion, when allocation was exactly of slab size. It is fixed in small's master. Part of #4609
Loading
Please register or sign in to comment