This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Move the decision making of page release to hasChanceToReleasePages()
ClosedPublic

Authored by Chia-hungDuan on Aug 21 2023, 2:27 PM.

Details

Summary

This change is only in SizeClassAllocator32. SizeClassAllocator64 has
it implemented.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Aug 21 2023, 2:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 2:27 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Aug 21 2023, 2:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 2:27 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cferris requested changes to this revision.Aug 21 2023, 6:57 PM

One small suggested change.

compiler-rt/lib/scudo/standalone/primary32.h
1023

I think this check can be removed because it's checked before the call. Unless you plan to call this from other places where ForceAll could be set.

This revision now requires changes to proceed.Aug 21 2023, 6:57 PM
Chia-hungDuan marked an inline comment as done.

Remove redundant check

compiler-rt/lib/scudo/standalone/primary32.h
1023

Nice Catch!

Chia-hungDuan edited the summary of this revision. (Show Details)Aug 21 2023, 9:38 PM
cferris accepted this revision.Aug 23 2023, 7:42 PM

LGTM.

This revision is now accepted and ready to land.Aug 23 2023, 7:42 PM