NetBSD/pkgsrc-wip 1f91f05compiler-rt-netbsd distinfo, compiler-rt-netbsd/patches patch-lib_sanitizer__common_sanitizer__thread__registry.cc patch-lib_tsan_rtl_tsan__interceptors.cc

compiler-rt-netbsd: Attempt to fix Thread Joined/Exited race

Backported from upstream patch:

Prevent Thread Exited/Joined events race
https://reviews.llvm.org/D40294

We shall get the following results for check-tsan.

Testing Time: 48.84s
********************
Failing Tests (13):
    ThreadSanitizer-x86_64 :: deadlock_detector_stress_test.cc
    ThreadSanitizer-x86_64 :: dtls.c
    ThreadSanitizer-x86_64 :: exceptions.cc
    ThreadSanitizer-x86_64 :: ignore_lib5.cc
    ThreadSanitizer-x86_64 :: ignored-interceptors-mmap.cc
    ThreadSanitizer-x86_64 :: longjmp3.cc
    ThreadSanitizer-x86_64 :: longjmp4.cc
    ThreadSanitizer-x86_64 :: mutex_lock_destroyed.cc
    ThreadSanitizer-x86_64 :: signal_errno.cc
    ThreadSanitizer-x86_64 :: signal_malloc.cc
    ThreadSanitizer-x86_64 :: signal_sync2.cc
    ThreadSanitizer-x86_64 :: signal_thread.cc
    ThreadSanitizer-x86_64 :: vfork.cc

  Expected Passes    : 245
  Expected Failures  : 1
  Unsupported Tests  : 83
  Unexpected Failures: 13

However something is still wrong and there are races.
Improper usage of atomic operations?

Sponsored by <The NetBSD Foundation>
DeltaFile
+46-0compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__thread__registry.cc
+42-0compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc
+35-0compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__thread__registry.h
+18-0compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl__thread.cc
+17-0compiler-rt-netbsd/patches/patch-lib_lsan_lsan__interceptors.cc
+13-0compiler-rt-netbsd/patches/patch-lib_lsan_lsan__thread.h
+13-0compiler-rt-netbsd/patches/patch-lib_lsan_lsan__thread.cc
+13-0compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl.h
+8-0compiler-rt-netbsd/distinfo
+205-09 files

UnifiedSplitRaw