From 1b54f9cb38605046d772ba0e125d5c009f1de7d2 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 30 Apr 2014 16:45:02 -0700 Subject: Clean up Add/Remove space. Deleted the set_as_default parameter and added a new function SetSpaceAsDefault instead. Change-Id: Ic4c359854d08e64ac0d0df92f0105447adb9df36 --- runtime/gc/heap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runtime/gc/heap.h') 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. -- cgit v1.1