diff options
author | Dan Blackwell <dan_blackwell@apple.com> | 2025-10-09 13:51:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-09 13:51:33 +0100 |
commit | 9abd6f22d4711f229582eed99b749980f29fe6c1 (patch) | |
tree | d92d56cf5c10db56bdda0fb5204f37cadc6aa339 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 0c2e900074a4a412afdbee5e56b1a513ea97b90f (diff) | |
download | llvm-9abd6f22d4711f229582eed99b749980f29fe6c1.zip llvm-9abd6f22d4711f229582eed99b749980f29fe6c1.tar.gz llvm-9abd6f22d4711f229582eed99b749980f29fe6c1.tar.bz2 |
[TSan] Add lock_during_write flag on Apple platforms to avoid deadlock (#157928)
There is a commonly used library that interposes the write call, and is
interposed itself. When running with `TSAN_OPTIONS=verbosity=(1|2)`,
this leads to a thread locking itself, resulting in the program hanging.
This patch adds a new flag `lock_during_write` to TSan (on Apple
platforms only) that, when set, allows interceptors to be bypassed
during calls to write. The flag can be inherited by children, or not,
depending on the value.
rdar://157565672
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions