OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/gc_sweeper.h" | 5 #include "vm/gc_sweeper.h" |
6 | 6 |
7 #include "vm/freelist.h" | 7 #include "vm/freelist.h" |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
10 #include "vm/lockers.h" | 10 #include "vm/lockers.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 void GCSweeper::SweepConcurrent(Isolate* isolate, | 158 void GCSweeper::SweepConcurrent(Isolate* isolate, |
159 HeapPage* first, | 159 HeapPage* first, |
160 HeapPage* last, | 160 HeapPage* last, |
161 FreeList* freelist) { | 161 FreeList* freelist) { |
162 SweeperTask* task = | 162 SweeperTask* task = |
163 new SweeperTask(isolate, | 163 new SweeperTask(isolate, |
164 isolate->heap()->old_space(), | 164 isolate->heap()->old_space(), |
165 first, last, | 165 first, last, |
166 freelist); | 166 freelist); |
167 ThreadPool* pool = Dart::thread_pool(); | 167 ThreadPool::Run(task); |
168 pool->Run(task); | |
169 } | 168 } |
170 | 169 |
171 } // namespace dart | 170 } // namespace dart |
OLD | NEW |