This is an archive of the discontinued LLVM Phabricator instance.

[ASan] Removed ASAN_SHADOW_SCALE.
ClosedPublic

Authored by kstoimenov on Dec 7 2021, 11:11 AM.

Details

Diff Detail

Event Timeline

kstoimenov created this revision.Dec 7 2021, 11:11 AM
kstoimenov requested review of this revision.Dec 7 2021, 11:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2021, 11:11 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Fixed base.

-asan-mapping-scale can not be removed as well, not in this patch

compiler-rt/lib/asan/asan_mapping.h
153–154

is possible to avoid the new macro?

vitalybuka accepted this revision.Dec 7 2021, 12:19 PM
vitalybuka added inline comments.
compiler-rt/lib/asan/asan_mapping.h
153–154

If you will need this for asm, then ASAN_SHADOW_SCALE is probably nicer, with followup patch to SHADOW_OFFSET_CONST -> ASAN_SHADOW_OFFSET_CONST

This revision is now accepted and ready to land.Dec 7 2021, 12:19 PM
kstoimenov updated this revision to Diff 392515.Dec 7 2021, 1:20 PM

Updated SHADOW_SCALE.

This revision was automatically updated to reflect the committed changes.
kstoimenov reopened this revision.Dec 7 2021, 2:27 PM
kstoimenov added inline comments.
compiler-rt/lib/asan/asan_mapping.h
153–154

It is not new, it is defined on line 177. I think there was a bad snapshot, it should be good now.

153–154

I will rename if follow-up patch.

This revision is now accepted and ready to land.Dec 7 2021, 2:27 PM
kstoimenov updated this revision to Diff 392541.Dec 7 2021, 2:36 PM

Fixed compile error.

This revision was automatically updated to reflect the committed changes.