This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Pass MapPlatformData in more calls
ClosedPublic

Authored by ddcc on Jul 6 2022, 3:53 PM.

Diff Detail

Event Timeline

ddcc created this revision.Jul 6 2022, 3:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2022, 3:53 PM
ddcc requested review of this revision.Jul 6 2022, 3:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2022, 3:53 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
ddcc updated this revision to Diff 442741.Jul 6 2022, 6:12 PM

Fix duplicate variable

vitalybuka added inline comments.Jul 6 2022, 9:33 PM
compiler-rt/lib/scudo/standalone/release.h
141

Data -> MapData

compiler-rt/lib/scudo/standalone/vector.h
94–95

PlatformData -> MapData

95

Can you make it the last member as well?

ddcc updated this revision to Diff 442776.Jul 6 2022, 10:13 PM

Rename variable and reorder

vitalybuka accepted this revision.Jul 7 2022, 9:36 AM
vitalybuka added inline comments.
compiler-rt/lib/scudo/standalone/vector.h
99

Can you please mark them both with [[no_unique_address]] to avoid vector size increase on other platforms

This revision is now accepted and ready to land.Jul 7 2022, 9:36 AM
This revision was automatically updated to reflect the committed changes.
vitalybuka reopened this revision.Jul 7 2022, 12:18 PM
vitalybuka added inline comments.
compiler-rt/lib/scudo/standalone/vector.h
99

Can you please mark them both with [[no_unique_address]] to avoid vector size increase on other platforms

Looks like you missed the last comment

This revision is now accepted and ready to land.Jul 7 2022, 12:18 PM
ddcc added a comment.Jul 7 2022, 12:49 PM

Oops I did, I'll add another commit for that.