[heap] Fix waiting for parallel tasks
R=hpayer@chromium.org BUG=chromium:524425 LOG=N Review URL: https://codereview.chromium.org/1356663002 Cr-Commit-Position: refs/heads/master@{#30803}
This commit is contained in:
parent
d7b78abc2e
commit
61fef76894
@ -3467,8 +3467,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user