This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Add compress_stack_depot flag
ClosedPublic

Authored by vitalybuka on Nov 23 2021, 7:28 PM.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Nov 23 2021, 7:28 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2021, 7:28 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
morehouse accepted this revision.Nov 29 2021, 11:02 AM
morehouse added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
100

stackStore.Allocated() here is the total *after* compression. So we should probably add diff to it.

This revision is now accepted and ready to land.Nov 29 2021, 11:02 AM
vitalybuka marked an inline comment as done.

fix

This revision was automatically updated to reflect the committed changes.
morehouse added inline comments.Dec 1 2021, 7:39 AM
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
100

I don't think this was addressed.

Suppose we compressed 100 KB down to 50 KB. The Printf is going to say we released 50 KB out of 50 KB, which is confusing and wrong.

stevewan added a subscriber: stevewan.EditedDec 1 2021, 1:04 PM

This is failing on clang-s390x-linux, https://lab.llvm.org/buildbot/#/builders/94/builds/6748, can you please take a look?

vitalybuka reopened this revision.Dec 1 2021, 7:20 PM
This revision is now accepted and ready to land.Dec 1 2021, 7:20 PM
vitalybuka updated this revision to Diff 391190.Dec 1 2021, 7:36 PM
vitalybuka marked an inline comment as done.

fix total

This revision was automatically updated to reflect the committed changes.