[libc-commits] [libc] [WIP][libc] Add freelist malloc (PR #94270)

via libc-commits libc-commits at lists.llvm.org
Tue Jun 4 14:47:41 PDT 2024


================
@@ -74,6 +74,9 @@ LIBC_INLINE void *operator new[](size_t size, std::align_val_t align,
   return LIBC_NAMESPACE::AllocChecker::aligned_alloc(size, align, ac);
 }
 
+LIBC_INLINE void *operator new(size_t, void *__p) { return __p; }
+LIBC_INLINE void *operator new[](size_t, void *__p) { return __p; }
----------------
PiJoules wrote:

This was landed in a separate PR https://github.com/llvm/llvm-project/pull/94290

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


More information about the libc-commits mailing list