[all-commits] [llvm/llvm-project] c48314: tsan: improve detection of stack/tls races
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Tue Oct 5 06:32:51 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c483140f3ce28ea243d414dd0dee0c0f13c5b01c
https://github.com/llvm/llvm-project/commit/c483140f3ce28ea243d414dd0dee0c0f13c5b01c
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2021-10-05 (Tue, 05 Oct 2021)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
M compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
M compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
Log Message:
-----------
tsan: improve detection of stack/tls races
Print meaningful stack frames for stack/tls races
(instead of PC 1/2 that don't symbolize).
Imitate stack/tls writes after we create and initialize
the new thread, otherwise the races are not detected.
This is re-submit of the following reverted commits,
but without tests as they failed on a number of OSes/arches:
"tsan: fix and test detection of TLS races"
"tsan: fix tls_race3 test on darwin"
"tsan: print a meaningful frame for stack races"
Differential Revision: https://reviews.llvm.org/D111147
More information about the All-commits
mailing list