This is an archive of the discontinued LLVM Phabricator instance.

[XRay] XRAY_NEVER_INSTRUMENT more functions, consolidate allocators
ClosedPublic

Authored by dberris on Sep 7 2018, 2:27 AM.

Details

Summary

In this change we apply XRAY_NEVER_INSTRUMENT to more functions in the
profiling implementation to ensure that these never get instrumented if
the compiler used to build the library is capable of doing XRay
instrumentation.

We also consolidate all the allocators into a single header
(xray_allocator.h) which sidestep the use of the internal allocator
implementation in sanitizer_common.

This addresses more cases mentioned in llvm.org/PR38577.

Diff Detail

Event Timeline

dberris created this revision.Sep 7 2018, 2:27 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 7 2018, 3:18 AM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptSep 7 2018, 3:18 AM