Skip to content

Commit 36bdec4

Browse files
committed
[NFC][tsan] Use AddThread(Tid tid...
1 parent 11db65b commit 36bdec4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,7 @@ void ScopedReportBase::AddLocation(uptr addr, uptr size) {
288288
loc->tid = creat_tid;
289289
loc->stack = SymbolizeStackId(creat_stack);
290290
rep_->locs.PushBack(loc);
291-
ThreadContext *tctx = FindThreadByTidLocked(creat_tid);
292-
if (tctx)
293-
AddThread(tctx);
291+
AddThread(creat_tid);
294292
return;
295293
}
296294
MBlock *b = 0;
@@ -312,8 +310,7 @@ void ScopedReportBase::AddLocation(uptr addr, uptr size) {
312310
loc->tid = b->tid;
313311
loc->stack = SymbolizeStackId(b->stk);
314312
rep_->locs.PushBack(loc);
315-
if (ThreadContext *tctx = FindThreadByTidLocked(b->tid))
316-
AddThread(tctx);
313+
AddThread(b->tid);
317314
return;
318315
}
319316
bool is_stack = false;

0 commit comments

Comments
 (0)