This is an archive of the discontinued LLVM Phabricator instance.

tsan: s/CHECK/DCHECK/ in tsan_interface_java.cpp
ClosedPublic

Authored by dvyukov on Jul 29 2021, 6:42 AM.

Details

Summary

We are very paranoid with CHECKs in all Java entry points.
These CHECKs were added along with Java support.
At that point it wasn't clear what exactly to expect from JVM part
and if JVM part is correct or not. Thus CHECK paranoia.
These CHECKs never fired in practice, but we pay runtime cost
in every entry point all the time.
Replace CHECKs with DCHECKs.

Depends on D107069.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 29 2021, 6:42 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2021, 6:42 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Jul 29 2021, 7:55 AM
This revision is now accepted and ready to land.Jul 29 2021, 7:55 AM
This revision was automatically updated to reflect the committed changes.