Skip to content

Commit

Permalink
tsan: remove unused variable
Browse files Browse the repository at this point in the history
Depends on D113983.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D113984
  • Loading branch information
dvyukov committed Dec 21, 2021
1 parent c82bd4c commit 53fc462
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
Expand Up @@ -452,9 +452,7 @@ static void *BackgroundThread(void *arg) {

u64 last_flush = start;
uptr last_rss = 0;
for (int i = 0;
atomic_load(&ctx->stop_background_thread, memory_order_relaxed) == 0;
i++) {
while (!atomic_load_relaxed(&ctx->stop_background_thread)) {
SleepForMillis(100);
u64 now = NanoTime();

Expand Down

0 comments on commit 53fc462

Please sign in to comment.