This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Fix StackDepotPrintAll
ClosedPublic

Authored by vitalybuka on Oct 11 2021, 9:37 PM.

Details

Summary

unlock corrupted backets by using s set by loop to nullptr.
Also StackDepot supports iterating without locking.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Oct 11 2021, 9:37 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 9:37 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov accepted this revision.Oct 11 2021, 10:23 PM

LGTM with a nit

compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
183

Strictly speaking this must be memory_order_consume if we remove the lock.

This revision is now accepted and ready to land.Oct 11 2021, 10:23 PM
vitalybuka marked an inline comment as done.

consume

This revision was landed with ongoing or failed builds.Oct 12 2021, 10:57 AM
This revision was automatically updated to reflect the committed changes.