[all-commits] [llvm/llvm-project] 824d83: [TSan] Relax pthread introspection-based test

Julian Lettner via All-commits all-commits at lists.llvm.org
Thu May 12 18:13:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 824d83068efc4dda17b4b33368c1fbd019299171
      https://github.com/llvm/llvm-project/commit/824d83068efc4dda17b4b33368c1fbd019299171
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c

  Log Message:
  -----------
  [TSan] Relax pthread introspection-based test

Thread create/destroy events are not guaranteed to belivered on the
parent thread, e.g., output from a CI job:
```
5: THREAD_CREATE 0x7e8000104000, self: 0x1102ebdc0, name: n/a
6: THREAD_START 0x7e8000104000, self: 0x7e8000104000, name: n/a
7: Hello from pthread
8: THREAD_TERMINATE 0x7e8000104000, self: 0x7e8000104000, name: child thread
9: THREAD_DESTROY 0x7e8000104000, self: 0x7e8000104000, name: child thread
```
Here, THREAD_DESTROY is delivered on the thread being destroyed.

rdar://92679941




More information about the All-commits mailing list