summaryrefslogtreecommitdiffstats
path: root/runtime/gc/heap.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-04-30 16:45:02 -0700
committerMathieu Chartier <mathieuc@google.com>2014-04-30 16:48:20 -0700
commit1b54f9cb38605046d772ba0e125d5c009f1de7d2 (patch)
tree91dc07d83a5a689acdf9ff5a8ec4595d3efb5b2b /runtime/gc/heap.h
parentadcfc69aa94cc1d406ef78e194b1ac36e389ad95 (diff)
downloadart-1b54f9cb38605046d772ba0e125d5c009f1de7d2.zip
art-1b54f9cb38605046d772ba0e125d5c009f1de7d2.tar.gz
art-1b54f9cb38605046d772ba0e125d5c009f1de7d2.tar.bz2
Clean up Add/Remove space.
Deleted the set_as_default parameter and added a new function SetSpaceAsDefault instead. Change-Id: Ic4c359854d08e64ac0d0df92f0105447adb9df36
Diffstat (limited to 'runtime/gc/heap.h')
-rw-r--r--runtime/gc/heap.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h
index c631372..2592983 100644
--- a/runtime/gc/heap.h
+++ b/runtime/gc/heap.h
@@ -281,11 +281,12 @@ class Heap {
void RegisterGCAllocation(size_t bytes);
void RegisterGCDeAllocation(size_t bytes);
- // Public due to usage by tests.
- void AddSpace(space::Space* space, bool set_as_default = true)
- LOCKS_EXCLUDED(Locks::heap_bitmap_lock_);
- void RemoveSpace(space::Space* space, bool unset_as_default = true)
+ // Set the heap's private space pointers to be the same as the space based on it's type. Public
+ // due to usage by tests.
+ void SetSpaceAsDefault(space::ContinuousSpace* continuous_space)
LOCKS_EXCLUDED(Locks::heap_bitmap_lock_);
+ void AddSpace(space::Space* space) LOCKS_EXCLUDED(Locks::heap_bitmap_lock_);
+ void RemoveSpace(space::Space* space) LOCKS_EXCLUDED(Locks::heap_bitmap_lock_);
// Set target ideal heap utilization ratio, implements
// dalvik.system.VMRuntime.setTargetHeapUtilization.