tsan: fix suppress_java logic

llvm-svn: 174635
This commit is contained in:
Dmitry Vyukov 2013-02-07 17:12:28 +00:00
parent 462516b737
commit e679798315
1 changed files with 10 additions and 7 deletions

View File

@ -521,14 +521,17 @@ static bool IsJavaNonsense(const ReportDesc *rep) {
&& frame->module == 0)) { && frame->module == 0)) {
return true; return true;
} }
frame = SkipTsanInternalFrames(frame); if (FrameIsInternal(frame)) {
if (frame->next == 0 frame = frame->next;
|| (frame->func == 0 && frame->file == 0 && frame->line == 0 if (frame == 0
|| (frame->func == 0 && frame->file == 0 && frame->line == 0
&& frame->module == 0)) { && frame->module == 0)) {
CHECK(frame); if (frame) {
FiredSuppression supp = {rep->typ, frame->pc}; FiredSuppression supp = {rep->typ, frame->pc};
CTX()->fired_suppressions.PushBack(supp); CTX()->fired_suppressions.PushBack(supp);
return true; }
return true;
}
} }
} }
#endif #endif