This is an archive of the discontinued LLVM Phabricator instance.

[lsan] Expose Frontier object to OS-specific LockStuffAndStopTheWorld callback
ClosedPublic

Authored by mcgrathr on Jan 18 2020, 3:19 PM.

Details

Summary

This is a small refactoring to prepare for porting LSan to Fuchsia.
On Fuchsia, the system supplies a unified API for suspending threads and
enumerating roots from OS-specific places like thread state and global data
ranges. So its LockStuffAndStopTheWorld implementation will make specific
callbacks for all the OS-specific root collection work before making the
common callback that includes the actual leak-checking logic.

Event Timeline

mcgrathr created this revision.Jan 18 2020, 3:19 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 18 2020, 3:19 PM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Jan 21 2020, 6:10 PM
This revision is now accepted and ready to land.Jan 21 2020, 6:10 PM
This revision was automatically updated to reflect the committed changes.