This is an archive of the discontinued LLVM Phabricator instance.

[Asan] Cleanup kAllocBegMagic setup
ClosedPublic

Authored by vitalybuka on Sep 14 2020, 3:55 PM.

Details

Summary

Make it atomic.
Wrap it into class.
Set it late after chunk is initialized.
Reset it soon when the chunk is still valid.

Depends on D87645.

Diff Detail

Event Timeline

vitalybuka created this revision.Sep 14 2020, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2020, 3:55 PM
Herald added subscribers: Restricted Project, jfb. · View Herald Transcript
vitalybuka requested review of this revision.Sep 14 2020, 3:55 PM
morehouse accepted this revision.Sep 14 2020, 5:31 PM
morehouse added inline comments.
compiler-rt/lib/asan/asan_allocator.cpp
166

I'm not sure which style guide we follow, but Google style is to have constants before other members.

This revision is now accepted and ready to land.Sep 14 2020, 5:31 PM
vitalybuka marked an inline comment as done.

reorder members

This revision was landed with ongoing or failed builds.Sep 15 2020, 12:12 AM
This revision was automatically updated to reflect the committed changes.