llvm-project/compiler-rt/lib
Dmitry Vyukov ffff5f16a4 tsan: Introducing a function to flush the shadow memory from third-party libraries
As discussed with Dmitry (https://goo.gl/SA4izd), I would like to introduce a function to be called from a third-party library to flush the shadow memory.
In particular, we ran some experiments with our tool Archer (an OpenMP data race detector based on Tsan, https://github.com/PRUNER/archer) and flushing the memory at the end of an outer parallel region, slightly increase the runtime overhead, but reduce the memory overhead of about 30%. This feature would come very handy in case of very large OpenMP applications that may cause an "out of memory" exception when checked with Tsan.

Reviewed in: https://reviews.llvm.org/D28443
Author: Simone Atzeni (simoatze)

llvm-svn: 291346
2017-01-07 11:27:33 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan Revert "Enable weak hooks on darwin" 2017-01-07 00:38:24 +00:00
builtins [builtins] Implement __floattitf() & __floatuntitf() 2017-01-06 18:46:35 +00:00
cfi [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
dfsan [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
esan [esan] Fix ESan test failure on Debian Sid bot 2016-10-07 20:53:35 +00:00
interception [asan] Don't assert that a target is within 2GB on 32-bit Windows 2016-11-15 18:29:17 +00:00
lsan Provide default implementations for sanitizer interface functions 2017-01-07 00:31:20 +00:00
msan [compiler-rt] Move logic which replace memcpy interceptor with memmove from asan to sanitizer_common. 2016-12-27 21:13:11 +00:00
profile [Profile] Fix value profiler eviction bug 2016-11-29 22:00:54 +00:00
safestack [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_common Revert "Enable weak hooks on darwin" 2017-01-07 00:38:24 +00:00
scudo [cmake] Disable appending -msse4.2 flag implicitly 2017-01-06 08:21:02 +00:00
stats Revert "Enable weak hooks on darwin" 2017-01-07 00:38:24 +00:00
tsan tsan: Introducing a function to flush the shadow memory from third-party libraries 2017-01-07 11:27:33 +00:00
ubsan Revert "Enable weak hooks on darwin" 2017-01-07 00:38:24 +00:00
xray [XRay] [compiler-rt] Include argv[0] in the log file name. 2017-01-03 04:35:24 +00:00
CMakeLists.txt build: allow building a specific set of sanitizers 2016-08-19 15:13:21 +00:00