[tsan] Improve suppression for tzset

When running under TSAN disable inlining of LocalTime
helper so we can write a suppression using its name.

Fixes https://github.com/dart-lang/sdk/issues/61396

TEST=ci

Cq-Include-Trybots: luci.dart.try:vm-tsan-linux-release-x64-try,vm-tsan-linux-release-arm64-try
Change-Id: I9f07572b5b597343dbc61554c4f287eac630f047
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/446720
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Vyacheslav Egorov
2025-08-26 01:01:14 -07:00
committed by Commit Queue
parent 1a7e1134ab
commit 8fbf6030ef
2 changed files with 25 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ SANITIZER_HOOK_ATTRIBUTE const char* __tsan_default_suppressions() {
# In some environments tzset_internal is not symbolized correctly so we
# also suppress the closest caller which is properly symbolized.
race:tzset_internal
race:dart::DN_HelperDateTime_timeZoneOffsetInSeconds
race:dart::LocalTime
)";
}
#endif // defined(USING_THREAD_SANITIZER) && defined(DART_HOST_OS_LINUX)