From 0d7bdb6ec99baf424f85de5038e21e01df937f6f Mon Sep 17 00:00:00 2001 From: ChiaHungDuan Date: Mon, 14 Oct 2024 12:53:07 -0700 Subject: [PATCH] Revert "[scudo] Apply the min release threshold to the group" (#112252) Reverts llvm/llvm-project#112014 The change didn't update the iterator --- compiler-rt/lib/scudo/standalone/primary64.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h index 1865ed41368e3c3..97188a5ac235ccb 100644 --- a/compiler-rt/lib/scudo/standalone/primary64.h +++ b/compiler-rt/lib/scudo/standalone/primary64.h @@ -1492,8 +1492,6 @@ template class SizeClassAllocator64 { } const uptr PushedBytesDelta = BytesInBG - BG->BytesInBGAtLastCheckpoint; - if (PushedBytesDelta < getMinReleaseAttemptSize(BlockSize)) - continue; // Given the randomness property, we try to release the pages only if the // bytes used by free blocks exceed certain proportion of group size. Note