Skip to content

Commit

Permalink
Revert "[scudo] Apply the min release threshold to the group" (llvm#1…
Browse files Browse the repository at this point in the history
…12252)

Reverts llvm#112014

The change didn't update the iterator
  • Loading branch information
ChiaHungDuan authored and bricknerb committed Oct 17, 2024
1 parent 5226a5a commit 0d7bdb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler-rt/lib/scudo/standalone/primary64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,6 @@ template <typename Config> 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
Expand Down

0 comments on commit 0d7bdb6

Please sign in to comment.