[all-commits] [llvm/llvm-project] 6f85d6: tsan: include internal allocator into deadlock det...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Nov 24 08:02:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f85d68e6ab29e544b301d7ac84de2819b8d4b7a
      https://github.com/llvm/llvm-project/commit/6f85d68e6ab29e544b301d7ac84de2819b8d4b7a
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_defs.h
    M compiler-rt/lib/tsan/rtl/tsan_mman.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

  Log Message:
  -----------
  tsan: include internal allocator into deadlock detection

Now that we lock the internal allocator around fork,
it's possible it will create additional deadlocks.
Add a fake mutex that substitutes the internal allocator
for the purposes of deadlock detection.

Depends on D114531.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D114532




More information about the All-commits mailing list