[PATCH] D72549: [TSan] Register threads created via pthread_create_from_mach_thread()

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 20 18:35:23 PDT 2021


yln updated this revision to Diff 339069.
yln added a comment.

Remove `default: UNREACHABLE("unknown event");` switch case to avoid crashes in case enum gets extended in the future.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72549/new/

https://reviews.llvm.org/D72549

Files:
  compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
  compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
  compiler-rt/lib/tsan/rtl/tsan_rtl.h
  compiler-rt/test/tsan/Darwin/mach-thread.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72549.339069.patch
Type: text/x-patch
Size: 11900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/dcb1a59c/attachment.bin>


More information about the llvm-commits mailing list