[compiler-rt] [scudo] Make block storage in TransferBatch trailing objects (PR #144204)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 16:09:39 PDT 2025


================
@@ -78,9 +77,12 @@ template <class SizeClassAllocator> struct BatchGroup {
   // This is used to track how many bytes are not in-use since last time we
   // tried to release pages.
   uptr BytesInBGAtLastCheckpoint;
-  // Blocks are managed by TransferBatch in a list.
-  SinglyLinkedList<TransferBatch<SizeClassAllocator>> Batches;
+  // Blocks are managed by Batch in a list.
+  SinglyLinkedList<Batch<SizeClassAllocator>> Batches;
   // Cache value of SizeClassAllocatorLocalCache::getMaxCached()
+  // TODO(chiahungduan): Except BatchClass, every Batch stores the same number
+  // of blocks. As long as we make BatchClass follows this constraint, this
----------------
ChiaHungDuan wrote:

done

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


More information about the llvm-commits mailing list