This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] FDR Mode: Use mmap instead of internal allocator
AbandonedPublic

Authored by dberris on Jul 29 2018, 8:26 PM.

Details

Reviewers
kpw
eizan
Summary

This change moves FDR mode to use internal_mmap(...) from
sanitizer_common instead of the internal allocator interface. We're
doing this to sidestep the alignment issues we encounter with the
InternalAlloc(...) functions returning pointers that have some magic
bytes at the beginning.

XRay copies bytes into the buffer memory, and does not require the magic
bytes tracking the other sanitizers use when allocating/deallocating
buffers.

Event Timeline

dberris created this revision.Jul 29 2018, 8:26 PM
dberris abandoned this revision.Jul 29 2018, 8:28 PM
dberris added reviewers: kpw, eizan.
dberris added a subscriber: llvm-commits.

Abandoning to add subscribers and reviewers from the beginning, please ignore.