This is an archive of the discontinued LLVM Phabricator instance.

[scudo] set/check invalid cache entries
ClosedPublic

Authored by frs513 on Jul 21 2023, 10:59 AM.

Details

Summary

made checking for invalid cache entries and setting invalid cache
entries more implicit and clear.

Diff Detail

Event Timeline

frs513 created this revision.Jul 21 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2023, 10:59 AM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
frs513 requested review of this revision.Jul 21 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2023, 10:59 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
frs513 updated this revision to Diff 543114.Jul 21 2023, 4:23 PM

clang format code

frs513 updated this revision to Diff 543118.Jul 21 2023, 4:36 PM

passed cached block entry by reference into set header

cferris added inline comments.Jul 21 2023, 4:39 PM
compiler-rt/lib/scudo/standalone/secondary.h
85

Sorry, really small nit pick here, but I think just naming this invalidate is better. As you can see below you have code like:

Entry[].invalidateEntry();

Where it seems to make more sense as:

Entry[].invalidate();

Since you don't use isValidEntry() in the other name it feels better to have them both have Entry or neither have Entry. I'd prefer neither have Entry.

frs513 updated this revision to Diff 543604.Jul 24 2023, 9:42 AM

changed name of invalidateEntry() to invalidate() to be more concise and less repetitive.

cferris accepted this revision.Jul 24 2023, 1:22 PM

LGTM.

This revision is now accepted and ready to land.Jul 24 2023, 1:22 PM
frs513 updated this revision to Diff 544062.Jul 25 2023, 11:47 AM

rebased and resolved merge conflicts

This revision was landed with ongoing or failed builds.Jul 25 2023, 12:27 PM
This revision was automatically updated to reflect the committed changes.