This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] New sanitizer API to purge allocator quarantine.
ClosedPublic

Authored by alekseyshl on Oct 20 2017, 7:33 PM.

Details

Summary

Purging allocator quarantine and returning memory to OS might be desired
between fuzzer iterations since, most likely, the quarantine is not
going to catch bugs in the code under fuzz, but reducing RSS might
significantly prolong the fuzzing session.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Oct 20 2017, 7:33 PM
cryptoad accepted this revision.Oct 23 2017, 9:06 AM

LGTM with a nit.

lib/sanitizer_common/sanitizer_quarantine.h
120 ↗(On Diff #119737)

Up to you, but maybe use atomic_load_relaxed?

This revision is now accepted and ready to land.Oct 23 2017, 9:06 AM
  • relaxed atomic_[store|load] -> atomic_[store|load]_relaxed
alekseyshl marked an inline comment as done.Oct 23 2017, 9:30 AM
This revision was automatically updated to reflect the committed changes.