This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Switch StackDepot to TwoLevelMap
ClosedPublic

Authored by vitalybuka on Oct 12 2021, 12:05 AM.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Oct 12 2021, 12:05 AM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2021, 12:05 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov accepted this revision.Oct 12 2021, 12:48 AM
dvyukov added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
153

This check is a tautology: node at index id always have node.id equals to id.

This revision is now accepted and ready to land.Oct 12 2021, 12:48 AM
vitalybuka added inline comments.Oct 12 2021, 11:04 AM
compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
153

unless someone pass not yet created id
it should be UB and never happen, but we have a test for this.
I will land it as is, as this field and check is gone in followup patches

This revision was automatically updated to reflect the committed changes.