[compiler-rt] [scudo] Pass the max number of blocks to popBlocks (PR #70243)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 17:27:38 PDT 2023
================
@@ -191,13 +191,15 @@ template <typename Config> class SizeClassAllocator32 {
return BlockSize > PageSize;
}
- u16 popBlocks(CacheT *C, uptr ClassId, CompactPtrT *ToArray) {
+ u16 popBlocks(CacheT *C, uptr ClassId, CompactPtrT *ToArray,
+ const u16 MaxBlockCount) {
----------------
ChiaHungDuan wrote:
Yes, it'll be used in the case that TransferBatch stores more blocks than `MaxBlockCount`. Now the TransferBatch almost always stores the same amount as `MaxBlocksCount` so we only use it in the DCHECK at this moment
https://github.com/llvm/llvm-project/pull/70243
More information about the llvm-commits
mailing list