Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: src/heap/mark-compact.cc

Issue 1356663002: [heap] Fix waiting for parallel tasks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index d51b03f64f1537bc41a0d20ad16d417ef78727ed..6d93216cd452520017dbbed1557915c3c7ee7b1b 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -3464,8 +3464,9 @@ void MarkCompactCollector::EvacuatePagesInParallel() {
void MarkCompactCollector::WaitUntilCompactionCompleted() {
- while (concurrent_compaction_tasks_active_-- > 0) {
+ while (concurrent_compaction_tasks_active_ > 0) {
pending_compaction_tasks_semaphore_.Wait();
+ concurrent_compaction_tasks_active_--;
}
parallel_compaction_in_progress_ = false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698