[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:
mlippautz 2015-09-17 07:43:15 -07:00 committed by Commit bot
parent d7b78abc2e
commit 61fef76894

View File

@ -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;
}