Index: runtime/vm/pages.h |
=================================================================== |
--- runtime/vm/pages.h (revision 20419) |
+++ runtime/vm/pages.h (working copy) |
@@ -127,9 +127,12 @@ |
void EvaluateGarbageCollection(intptr_t in_use_before, intptr_t in_use_after, |
int64_t start, int64_t end); |
- void Enable() { |
- is_enabled_ = true; |
+ void set_is_enabled(bool state) { |
+ is_enabled_ = state; |
} |
+ bool is_enabled() { |
+ return is_enabled_; |
+ } |
private: |
bool is_enabled_; |
@@ -204,10 +207,14 @@ |
void StartEndAddress(uword* start, uword* end) const; |
- void EnableGrowthControl() { |
- page_space_controller_.Enable(); |
+ void SetGrowthControlState(bool state) { |
+ page_space_controller_.set_is_enabled(state); |
} |
+ bool GrowthControlState() { |
+ return page_space_controller_.is_enabled(); |
+ } |
+ |
void WriteProtect(bool read_only); |
typedef std::map<RawObject*, void*> PeerTable; |