Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[scudo] Apply the min release threshold to the group" #112252

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

ChiaHungDuan
Copy link
Contributor

Reverts #112014

The change didn't update the iterator

@ChiaHungDuan ChiaHungDuan merged commit 037938d into main Oct 14, 2024
8 of 10 checks passed
@ChiaHungDuan ChiaHungDuan deleted the revert-112014-page-release-strategy branch October 14, 2024 19:53
@llvmbot
Copy link
Member

llvmbot commented Oct 14, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: None (ChiaHungDuan)

Changes

Reverts llvm/llvm-project#112014

The change didn't update the iterator


Full diff: https://github.com/llvm/llvm-project/pull/112252.diff

1 Files Affected:

  • (modified) compiler-rt/lib/scudo/standalone/primary64.h (-2)
diff --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h
index 1865ed41368e3c..97188a5ac235cc 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -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

ChiaHungDuan added a commit to ChiaHungDuan/Scudo-Workspace that referenced this pull request Oct 14, 2024
ChiaHungDuan added a commit that referenced this pull request Oct 15, 2024
…) (#112266)

This reverts commit 037938d.

Fixed the iterator to avoid infinite loop
DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
…112252) (llvm#112266)

This reverts commit 037938d.

Fixed the iterator to avoid infinite loop
bricknerb pushed a commit to bricknerb/llvm-project that referenced this pull request Oct 17, 2024
bricknerb pushed a commit to bricknerb/llvm-project that referenced this pull request Oct 17, 2024
…112252) (llvm#112266)

This reverts commit 037938d.

Fixed the iterator to avoid infinite loop
EricWF pushed a commit to efcs/llvm-project that referenced this pull request Oct 22, 2024
EricWF pushed a commit to efcs/llvm-project that referenced this pull request Oct 22, 2024
…112252) (llvm#112266)

This reverts commit 037938d.

Fixed the iterator to avoid infinite loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants