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

Unified Diff: vm/pages.h

Issue 8761006: - Implement a simple old-generation marker. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « vm/heap_test.cc ('k') | vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/pages.h
===================================================================
--- vm/pages.h (revision 1929)
+++ vm/pages.h (working copy)
@@ -85,6 +85,9 @@
void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
+ // Collect the garbage in the page space using mark-sweep.
+ void MarkSweep();
+
private:
static const intptr_t kAllocatablePageSize = kPageSize - sizeof(HeapPage);
@@ -105,8 +108,14 @@
intptr_t capacity_;
intptr_t in_use_;
+ // Old-gen GC cycle count.
+ int count_;
+
bool is_executable_;
+ // Keep track whether a MarkSweep is currently running.
+ bool sweeping_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
};
« no previous file with comments | « vm/heap_test.cc ('k') | vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698