Closed
Description
The non-jemalloc allocator implementation should branch on the Rust end in order to use malloc
/ realloc
/ free
. It will optimize out in essentially every real-world case, since alignment is rarely dynamic.
Exposing functions without the alignment parameter may also make sense, and having a branch on the Rust side for jemalloc would eliminate a branch for the low alignment case inside the allocator.