[PATCH] D35958: [sancov] Implement __sanitizer_cov_reset.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 16:12:24 PDT 2017


eugenis updated this revision to Diff 108539.
eugenis added a comment.

PTAL. I've slapped a mutex on all updates to pc_vector other than new coverage. This should prevent reset/dump vs dlopen conflicts (dlopen may reallocate pc_vector). Reset/dump vs new coverage is IMHO too trivial to even mention in the comments, and completely safe.


https://reviews.llvm.org/D35958

Files:
  compiler-rt/include/sanitizer/coverage_interface.h
  compiler-rt/lib/sanitizer_common/sanitizer_coverage_interface.inc
  compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cc
  compiler-rt/test/asan/TestCases/Posix/coverage-reset.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35958.108539.patch
Type: text/x-patch
Size: 5640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170727/af4e627d/attachment.bin>


More information about the llvm-commits mailing list