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

Unified Diff: runtime/vm/pages.h

Issue 251373012: Add Heap::isolate_ to simplify code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/pages.h
===================================================================
--- runtime/vm/pages.h (revision 35410)
+++ runtime/vm/pages.h (working copy)
@@ -114,7 +114,10 @@
// PageSpaceController controls the heap size.
class PageSpaceController {
public:
- PageSpaceController(int heap_growth_ratio,
+ // The heap is passed in for recording stats only. The controller does not
+ // invoke GC by itself.
+ PageSpaceController(Heap* heap,
+ int heap_growth_ratio,
int heap_growth_max,
int garbage_collection_time_ratio);
~PageSpaceController();
@@ -146,6 +149,8 @@
}
private:
+ Heap* heap_;
+
bool is_enabled_;
// Usage after last evaluated GC or last enabled.
« runtime/vm/heap.cc ('K') | « runtime/vm/heap.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698