[PATCH] D39619: Correct atexit(3) support in TSan/NetBSD

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 08:29:14 PST 2017


krytarowski added a comment.

Thanks for review, I will commit it tonight!

The remaining problems with TSan/NetBSD:

- Mutex tracking is broken, they seem to be not registered (in ScopedReport::AddMemoryAccess we always get mset->Size() equal to 0)
- Thread Deatch and Thread Joined can race and assert that they go in the wrong order (we destroy a thread before marking it Finished)

Less important ones:

- setjmp/longjmp unimplemented for NetBSD
- StartBackgroundThread() is not executed (need to be deferred)


Repository:
  rL LLVM

https://reviews.llvm.org/D39619





More information about the llvm-commits mailing list