[PATCH] D16214: [tsan] Fix ScopedInterceptor's handling of !thr->is_inited

Yabin Cui via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 11:54:20 PST 2016


yabinc added a comment.

Sorry, I missed two lines when committing http://reviews.llvm.org/D15301. I uploaded the fix in http://reviews.llvm.org/D15301.
I think if !thr->is_inited, it means __tsan_thread_start_func()->ThreadStart() is not called, and I think we shouldn't access
fields in ThreadState as it is not inited. Please let me know if my understanding is wrong.


http://reviews.llvm.org/D16214





More information about the llvm-commits mailing list