This is an archive of the discontinued LLVM Phabricator instance.

tsan: remove in_rtl counter
ClosedPublic

Authored by dvyukov on Dec 24 2013, 4:09 AM.

Details

Summary

This is intended to address the following problem.
Episodically we see CHECK-failures when recursive interceptors call back into user code. Effectively we are not "in_rtl" at this point, but it's very complicated and fragile to properly maintain in_rtl property. Instead get rid of it. It was used mostly for sanity CHECKs, which basically never uncover real problems.
Instead introduce ignore_interceptors flag, which is used in very few narrow places to disable recursive interceptors (e.g. during runtime initialization).

Diff Detail

Event Timeline

This is mostly FYI. If you want to review, say so.

glider accepted this revision.Dec 24 2013, 4:47 AM

Minor nit.

rtl/tsan_rtl_report.cc
603

typo?

Thanks
Fixed

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r197979.