[compiler-rt] [scudo] Make local cache be agnostic to the type of node in freelist (PR #67379)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 11:28:59 PDT 2023


================
@@ -187,6 +191,20 @@ template <typename Config> class SizeClassAllocator32 {
     return BlockSize > PageSize;
   }
 
+  u16 popBlocks(CacheT *C, uptr ClassId, CompactPtrT *ToArray) {
+    TransferBatch *B = popBatch(C, ClassId);
+    if (!B)
+      return 0;
+
+    const u16 Count = B->getCount();
----------------
ChiaHungDuan wrote:

Nice catch!

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


More information about the llvm-commits mailing list