This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Make StackTrace a lightweight reference to array of PCs, and introduce a BufferedStackTrace class, which owns this array.
ClosedPublic

Authored by samsonov on Oct 24 2014, 3:09 PM.

Details

Summary

This change splits sanitizer::StackTrace class into a lightweight
sanitizer::StackTrace, which doesn't own array of PCs, and BufferedStackTrace,
which owns it. This would allow us to simplify the interface of StackDepot,
and eventually merge sanitizer::StackTrace with tsan::StackTrace.

Diff Detail

Event Timeline

samsonov updated this revision to Diff 15442.Oct 24 2014, 3:09 PM
samsonov retitled this revision from to [Sanitizer] Make StackTrace a lightweight reference to array of PCs, and introduce a BufferedStackTrace class, which owns this array..
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added reviewers: kcc, dvyukov.
samsonov added a subscriber: Unknown Object (MLST).
samsonov updated this revision to Diff 15444.Oct 24 2014, 3:14 PM

Remove commented-out code, add a FIXME.

Updating D5985: [Sanitizer] Make StackTrace a lightweight reference to array of PCs, and

introduce a BufferedStackTrace class, which owns this array.

dvyukov accepted this revision.Oct 25 2014, 4:03 AM
dvyukov edited edge metadata.

LGTM

You are going to do the rest of the refactoring and address the added FIXME's, right?

This revision is now accepted and ready to land.Oct 25 2014, 4:03 AM

Yes, I will proceed with the refactoring, just wanted to make sure we're on the same page.

samsonov closed this revision.Oct 25 2014, 8:45 PM