llvm-project/compiler-rt/lib
Ryan Prichard 1e216a59f6 [builtins] Delay emutls deallocation for one round
Summary:
With Android/Bionic, delay deallocation to round 2 of 4. It must run after
C++ thread_local destructors have been called, but before the final 2
rounds, because emutls calls free, and jemalloc then needs another 2
rounds to free its thread-specific data.

Fixes https://github.com/android-ndk/ndk/issues/687

Reviewers: cmtice, srhines, jyknight, chh, echristo

Reviewed By: srhines, chh, echristo

Subscribers: echristo, delcypher, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D46978

llvm-svn: 334463
2018-06-12 01:32:26 +00:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan [asan, myriad] Use local pool for new/delete when ASan run-time is not up 2018-06-08 21:49:38 +00:00
builtins [builtins] Delay emutls deallocation for one round 2018-06-12 01:32:26 +00:00
cfi [sanitizer] Build failures fixes post D45457 2018-04-16 16:58:34 +00:00
dfsan Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
esan [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
fuzzer [libFuzzer] When printing NEW_FUNC, use 1-base indexing. 2018-06-07 21:15:24 +00:00
hwasan [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
interception [sanitizer] Trivial portion of the port to Myriad RTEMS 2018-05-18 00:43:54 +00:00
lsan [Sanitizers] Move pvalloc overflow tests to common. 2018-06-11 17:33:53 +00:00
msan [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
profile [CMake] Build shared version of runtimes for Fuchsia 2018-05-09 21:24:06 +00:00
safestack [safestack] Lazy initialization of interceptors 2018-05-26 01:18:32 +00:00
sanitizer_common [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
scudo [scudo] Improve the scalability of the shared TSD model 2018-06-11 14:50:31 +00:00
stats [sanitizer] Replace InternalScopedBuffer with InternalMmapVector 2018-05-07 05:56:36 +00:00
tsan [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
ubsan [sanitizer] Trivial portion of the port to Myriad RTEMS 2018-05-18 00:43:54 +00:00
ubsan_minimal [CMake] Build shared version of runtimes for Fuchsia 2018-05-09 21:24:06 +00:00
xray [Xray] logging forgotten header 2018-06-08 08:42:37 +00:00
CMakeLists.txt [cmake] Add a separate CMake var to control profile runtime 2017-10-02 05:03:55 +00:00