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:
Dmitry Vyukov 2021-09-23 13:52:49 +02:00
parent 5ce89279c0
commit 7faf1285f2
2 changed files with 0 additions and 8 deletions

View File

@ -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();

View File

@ -306,7 +306,6 @@ struct Context {
Mutex report_mtx;
int nreported;
int nmissed_expected;
atomic_uint64_t last_symbolize_time_ns;
void *background_thread;