Index: src/marking-thread.cc |
diff --git a/src/marking-thread.cc b/src/marking-thread.cc |
index 574485abc7b1c7ae36c2cc04d1a2d2e663fa2921..ac9f944fe7e3ca0b4ed435740112efc052380487 100644 |
--- a/src/marking-thread.cc |
+++ b/src/marking-thread.cc |
@@ -73,6 +73,7 @@ void MarkingThread::Stop() { |
Release_Store(&stop_thread_, static_cast<AtomicWord>(true)); |
start_marking_semaphore_->Signal(); |
stop_semaphore_->Wait(); |
+ Join(); |
} |