[vm] Disable longjmp() wrapper in exceptional flow in TSAN until g3 issue is fixed
Issue b/209838275
TEST=ci
Change-Id: Ie0a2e6f68a0c4f855dfd367dd3dd0a37053be479
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222760
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
index 84a8114..fc6e47b 100644
--- a/runtime/vm/exceptions.cc
+++ b/runtime/vm/exceptions.cc
@@ -631,7 +631,9 @@
// The shadow call stack register will be restored by the JumpToFrame stub.
#endif
-#if defined(USING_THREAD_SANITIZER)
+ // TODO(b/209838275): Re-enable this once g3 build rules for gen_snapshot are
+ // working with TSAN.
+#if 0 // defined(USING_THREAD_SANITIZER)
if (thread->exit_through_ffi() == Thread::kExitThroughRuntimeCall) {
auto tsan_utils = thread->tsan_utils();
tsan_utils->exception_pc = program_counter;