[all-commits] [llvm/llvm-project] 0b049c: [tsan] Test `__tsan_test_only_on_fork` only on Mac...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Jun 25 09:58:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b049ce64653a8cbdeedaa2bfe6cc79fc6af5d40
      https://github.com/llvm/llvm-project/commit/0b049ce64653a8cbdeedaa2bfe6cc79fc6af5d40
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-06-25 (Tue, 25 Jun 2024)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
    A compiler-rt/test/tsan/Darwin/fork_deadlock.cpp
    R compiler-rt/test/tsan/Linux/fork_deadlock.cpp

  Log Message:
  -----------
  [tsan] Test `__tsan_test_only_on_fork` only on Mac (#96597)

According to https://reviews.llvm.org/D114250
this was to handle Mac specific issue, however
the test is Linux only.

The test effectively prevents to lock main allocator
on fork, but we do that on Linux for other
sanitizers for years, and need to do the same
for TSAN to avoid deadlocks.



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