[vm, compiler] Get the full Dart stack in TSAN reports.
Call __tsan_func_entry/__tsan_func_exit in functions that use __tsan_read/__tsan_write or call other functions. Call __tsan_func_exit once per frame when unwinding for exceptions. Do so only in AOT, since TSAN won't be able to symbolize JIT functions anyway. TEST=ci Bug: https://github.com/dart-lang/sdk/issues/61352 Cq-Include-Trybots: luci.dart.try:vm-tsan-linux-release-arm64-try,vm-tsan-linux-release-x64-try Change-Id: Ie52c978c25664d78b834e9b72ecf7eb2a12cc2ba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/444181 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
committed by
Commit Queue
parent
3bc1985977
commit
e01d4b3cc6
@@ -35,6 +35,8 @@ extern "C" void __tsan_write2(void* addr);
|
||||
extern "C" void __tsan_write4(void* addr);
|
||||
extern "C" void __tsan_write8(void* addr);
|
||||
extern "C" void __tsan_write16(void* addr);
|
||||
extern "C" void __tsan_func_entry(void* pc);
|
||||
extern "C" void __tsan_func_exit();
|
||||
#else
|
||||
#define NO_SANITIZE_THREAD
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user