[compiler-rt] [scudo] Pass the max number of blocks to popBlocks (PR #70243)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 17:53:45 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) {
----------------
cferris1000 wrote:
Do you need to add a [[maybe_unused]] in front of the variable? It seems like this could result in a build error when DCHECK is compiled out.
https://github.com/llvm/llvm-project/pull/70243
More information about the llvm-commits
mailing list