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

Unified Diff: runtime/vm/gc_sweeper.h

Issue 503363005: - Add and enable concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/gc_sweeper.h
===================================================================
--- runtime/vm/gc_sweeper.h (revision 39573)
+++ runtime/vm/gc_sweeper.h (working copy)
@@ -13,6 +13,8 @@
class FreeList;
class Heap;
class HeapPage;
+class Isolate;
+class PageSpace;
// The class GCSweeper is used to visit the heap after marking to reclaim unused
// memory.
@@ -30,6 +32,12 @@
// last marked object.
intptr_t SweepLargePage(HeapPage* page);
+ // Sweep the regular sized data pages between first and last inclusive.
+ static void SweepConcurrent(Isolate* isolate,
+ HeapPage* first,
+ HeapPage* last,
+ FreeList* freelist);
+
private:
Heap* heap_;
« no previous file with comments | « runtime/vm/class_table.cc ('k') | runtime/vm/gc_sweeper.cc » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698