[compiler-rt] [scudo] Pass the max number of blocks to popBlocks (PR #70243)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 26 14:14:54 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:
You're right. Given that the same check has been done in `refill (local_cache.h)`, I just mark it as `UNUSED` and put a comment.
https://github.com/llvm/llvm-project/pull/70243
More information about the llvm-commits
mailing list