This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Add PageReleaseContext to convey page usage status.
ClosedPublic

Authored by Chia-hungDuan on Sep 14 2022, 2:20 PM.

Details

Summary

PageReleaseContext contains all the information needed for determing if
a page can be released. Splitting out the context increases the flexibility
of heterogenous free lists in the future. Also rename PackedCounterArray to
PageMap.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Sep 14 2022, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 2:20 PM
Herald added a subscriber: Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Sep 14 2022, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 2:20 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cryptoad added inline comments.
compiler-rt/lib/scudo/standalone/release.h
351

not const

387–390

nit const

Chia-hungDuan marked an inline comment as done.

Address review comment

Chia-hungDuan marked an inline comment as done.Sep 28 2022, 11:31 AM
Chia-hungDuan added inline comments.
compiler-rt/lib/scudo/standalone/release.h
351

Same as below

Mostly small issues.

compiler-rt/lib/scudo/standalone/release.h
147

the

227

Tabs snuck in, the same for a few of following lines.

269

More tabs.

Chia-hungDuan marked 3 inline comments as done.

address review comment

Address review comment

Try to handle tab problem...

Try to address tab problem...

Try to address tab problem...

Sorry for spamming patches. I was trying to see why phab keeps saying I added tab.
Tried several ways and couldn't remove it. I think I'm using space instead of tab...

pcc added a subscriber: pcc.Oct 5 2022, 5:50 PM

In phabricator those markers just mean that you added indentation, not that you added a tab.

In phabricator those markers just mean that you added indentation, not that you added a tab.

Got it! Thanks!

cferris accepted this revision.Oct 6 2022, 2:04 PM

LGTM

Any other reviewers, please take a quick look to make everything looks okay. If you feel that you might not understand all of the deeper changes, we'd still appreciate a higher level review to make sure there are no obvious errors.

This revision is now accepted and ready to land.Oct 6 2022, 2:04 PM
cryptoad signed these changes with MFA.Oct 12 2022, 10:53 AM
cryptoad accepted this revision.
This revision was landed with ongoing or failed builds.Oct 13 2022, 4:35 PM
This revision was automatically updated to reflect the committed changes.