This is an archive of the discontinued LLVM Phabricator instance.

Expose thread local quarantine size as ASAN option.
ClosedPublic

Authored by alekseyshl on Dec 21 2016, 12:08 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl retitled this revision from to Expose thread local quarantine size as ASAN option..
alekseyshl updated this object.
alekseyshl added a reviewer: eugenis.
alekseyshl added a subscriber: llvm-commits.
eugenis added inline comments.Dec 21 2016, 12:13 PM
test/asan/TestCases/Linux/thread_local_quarantine_size_kb.cc
27 ↗(On Diff #82253)

background thread?

27 ↗(On Diff #82253)

ah right, rss limit

eugenis edited edge metadata.Dec 21 2016, 1:24 PM

Could you change the test to use __sanitizer_get_heap_size? That would avoid the need to sleep in the test (which can be flaky under load). Also, that way you can measure incremental memory use, instead of hardcoding a total rss limit which includes all kinds of unrelated allocations.

alekseyshl updated this revision to Diff 82364.Dec 22 2016, 1:19 PM
alekseyshl edited edge metadata.
  • Verify the actual heap size, not the total RSS.
alekseyshl marked 2 inline comments as done.Dec 22 2016, 1:20 PM

Done

eugenis accepted this revision.Dec 22 2016, 1:46 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 22 2016, 1:46 PM
This revision was automatically updated to reflect the committed changes.