This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] Stash flags as well in x86_64 trampoline
ClosedPublic

Authored by dberris on Aug 26 2018, 10:07 PM.

Details

Summary

This change saves and restores the full flags register in x86_64 mode.
This makes running instrumented signal handlers safer, and avoids flags
set during the execution of the event handlers from polluting the
instrumented call's flags state.

Diff Detail

Event Timeline

dberris created this revision.Aug 26 2018, 10:07 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 28 2018, 3:33 AM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptAug 28 2018, 3:33 AM