diff options
| author | 2013-12-16 08:42:57 +0000 | |
|---|---|---|
| committer | 2013-12-16 08:42:57 +0000 | |
| commit | d5c0587bc26a820646950b634275ba10ab06c995 (patch) | |
| tree | fe1eaaef44969e70d5d5fd09c21a4a8f9f39a4e3 /compiler/driver/compiler_driver.cc | |
| parent | d6beffe76384f569c244352f79a47c684637e2b6 (diff) | |
| parent | 501baec5f2de2156bb5ed7f66d23f1b1ad026267 (diff) | |
Merge "Cleanup thread pool tasks creation."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 43ed28c762..309af1dfa4 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1384,11 +1384,9 @@ class ParallelCompilationManager { self->AssertNoPendingException(); CHECK_GT(work_units, 0U); - std::vector<ForAllClosure*> closures(work_units); index_ = begin; for (size_t i = 0; i < work_units; ++i) { - closures[i] = new ForAllClosure(this, end, callback); - thread_pool_->AddTask(self, closures[i]); + thread_pool_->AddTask(self, new ForAllClosure(this, end, callback)); } thread_pool_->StartWorkers(self); |