[all-commits] [llvm/llvm-project] e40ff7: [TSan][test-only] Make TSan os_unfair_lock.c test ...
Dan Blackwell via All-commits
all-commits at lists.llvm.org
Tue Oct 7 08:15:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e40ff72df1b0e03b17e2abad40c4b97e7ae447d7
https://github.com/llvm/llvm-project/commit/e40ff72df1b0e03b17e2abad40c4b97e7ae447d7
Author: Dan Blackwell <dan_blackwell at apple.com>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M compiler-rt/test/tsan/Darwin/os_unfair_lock.c
Log Message:
-----------
[TSan][test-only] Make TSan os_unfair_lock.c test check the weak symbol before usage (#161173)
The os_unfair_lock.c test can currently fail with a null dereference if
compiled on a platform with `os_unfair_lock_lock_with_flags`, but then
executed on a platform without the function.
This patch fixes this by first checking whether the symbol exists, and
falls back to `os_unfair_lock_lock` if not.
rdar://160596542
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list