[libc-commits] [libc] [libc] add snmalloc as an alternative allocator to libc (PR #122284)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Sat Jan 18 01:36:38 PST 2025


SchrodingerZhu wrote:

LLVM-libc atexit implementation calls malloc to obtain chunks when public packaging mode is enabled, which looks fishy to me. We should probably change the behavior.

On the other hand, we can also call allocators cleanup hook (_malloc_thread_cleanup) internally since we do have full control of threads and main CRT startup/teardown in hermetic/fullbuild. 

https://github.com/llvm/llvm-project/pull/122284


More information about the libc-commits mailing list