Clears all collected coverage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
compiler-rt/include/sanitizer/coverage_interface.h | ||
---|---|---|
25 ↗ | (On Diff #108534) | Write something about threads (more that one thread => warranty void) |
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cc | ||
129 ↗ | (On Diff #108534) | This way you never modify the guard after the initial init, so why not just use a plain load? |
Comment Actions
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.
Comment Actions
Removed the lock. Was not a good idea: we can not protect new coverage vs dlopen anyway (which is the most common race by far).