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

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Sun Mar 23 11:21:59 PDT 2025


================
@@ -482,6 +482,11 @@ int Thread::get_name(cpp::StringStream &name) const {
   return 0;
 }
 
+#ifdef LIBC_USE_MALLOC_THREAD_CLEANUP
+// This symbol may not be defined if libc is not built with allocator
+extern "C" [[gnu::weak]] void _malloc_thread_cleanup();
+#endif
----------------
jhuber6 wrote:

Any way we can get it to work without this?

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


More information about the libc-commits mailing list