forked from OSchip/llvm-project
tsan: remove expected race leftover
Remove nmissed_expected variable. It's a leftover from removed "expected race" feature and is never incremented. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D110321
This commit is contained in:
parent
5ce89279c0
commit
7faf1285f2
|
@ -108,7 +108,6 @@ Context::Context()
|
|||
: initialized(),
|
||||
report_mtx(MutexTypeReport),
|
||||
nreported(),
|
||||
nmissed_expected(),
|
||||
thread_registry(CreateThreadContext, kMaxTid, kThreadQuarantineSize,
|
||||
kMaxTidReuse),
|
||||
racy_mtx(MutexTypeRacy),
|
||||
|
@ -464,12 +463,6 @@ int Finalize(ThreadState *thr) {
|
|||
#endif
|
||||
}
|
||||
|
||||
if (ctx->nmissed_expected) {
|
||||
failed = true;
|
||||
Printf("ThreadSanitizer: missed %d expected races\n",
|
||||
ctx->nmissed_expected);
|
||||
}
|
||||
|
||||
if (common_flags()->print_suppressions)
|
||||
PrintMatchedSuppressions();
|
||||
|
||||
|
|
|
@ -306,7 +306,6 @@ struct Context {
|
|||
|
||||
Mutex report_mtx;
|
||||
int nreported;
|
||||
int nmissed_expected;
|
||||
atomic_uint64_t last_symbolize_time_ns;
|
||||
|
||||
void *background_thread;
|
||||
|
|
Loading…
Reference in New Issue