Start the background thread only after fork, but not after clone.
For fork we did this always and it's known to work (or user code has adopted).
But if we do this for the new clone interceptor some code (sandbox2) fails.
So model we used to do for years and don't start the background thread after clone.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp | ||
---|---|---|
522–523 | This comment block seems more appropriate above the call to this function in the clone interceptor. |
This comment block seems more appropriate above the call to this function in the clone interceptor.