Index: src/sweeper-thread.cc |
diff --git a/src/sweeper-thread.cc b/src/sweeper-thread.cc |
index 099f5d187915b98f478d533883d6f9cc5bab5ad1..ede567a48574ede71132dcd405727dbfe2819452 100644 |
--- a/src/sweeper-thread.cc |
+++ b/src/sweeper-thread.cc |
@@ -93,6 +93,7 @@ void SweeperThread::Stop() { |
Release_Store(&stop_thread_, static_cast<AtomicWord>(true)); |
start_sweeping_semaphore_->Signal(); |
stop_semaphore_->Wait(); |
+ Join(); |
} |