[libc-commits] [libc] [libc] Lazily initialize freelist malloc using symbols (PR #99254)

Daniel Thornburgh via libc-commits libc-commits at lists.llvm.org
Wed Jul 17 09:47:37 PDT 2024


================
@@ -0,0 +1,2 @@
+.weak __libc_heap_limit
+.set __libc_heap_limit, LIBC_FREELIST_MALLOC_SIZE
----------------
mysterymath wrote:

It would still need to be done using an inline assembly snippet, since there's no other C/C++ way to directly set the value of a symbol (to my knowledge?). Is that still preferable?

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


More information about the libc-commits mailing list