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

Side by Side Diff: runtime/vm/gc_sweeper.cc

Issue 1177153005: Enables clean VM shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Kill isolates from the service isolate Created 5 years, 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698