[libc] [llvm] [libc] add basic arena allocator (PR #121173)

Tristan Ross via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 10:47:39 PST 2025


================
@@ -115,6 +115,16 @@
     "LIBC_ADD_NULL_CHECKS": {
       "value": true,
       "doc": "Add nullptr checks in the library's implementations to some functions for which passing nullptr is undefined behavior."
+    },
+    "LIBC_CONF_ALLOC_TYPE": {
+      "value": "LIBC_ALLOC_TYPE_ARENA",
+      "doc": "The implementation used for allocations, acceptable values are LIBC_ALLOC_TYPE_EXTERN, LIBC_ALLOC_TYPE_SCUDO, LIBC_ALLOC_TYPE_ARENA."
----------------
RossComputerGuy wrote:

I'm not familiar with existing allocators being implemented. I could hook them up to support the option and general interface.

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


More information about the llvm-commits mailing list