This is an archive of the discontinued LLVM Phabricator instance.

[asan] Modified ASAN_MEMORY_ACCESS_CALLBACK to use a function call to ReportGenericErrorWrapper.
ClosedPublic

Authored by kstoimenov on Jul 21 2021, 3:49 PM.

Details

Summary

This change eliminate the stack frame for the fast path and improves runtime performance.

Diff Detail

Event Timeline

kstoimenov requested review of this revision.Jul 21 2021, 3:49 PM
kstoimenov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2021, 3:49 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Jul 21 2021, 5:15 PM
vitalybuka added inline comments.
compiler-rt/lib/asan/asan_rtl.cpp
92

does this pass check-asan and check-sanitizer?
it can break stack trace matchers in tests

This revision is now accepted and ready to land.Jul 21 2021, 5:15 PM

It passed both.