summaryrefslogtreecommitdiffstats
path: root/runtime/gc/heap.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-05-01 16:29:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-01 16:29:34 +0000
commit7edf7c81724ecdc59847436ef451881b7ba54261 (patch)
tree52d5e02dd56b6dd4db116397eae3045dd4921f89 /runtime/gc/heap.h
parentd2e1f116e0475212bc8d2722637bc7bcdf93fc7c (diff)
parent1b54f9cb38605046d772ba0e125d5c009f1de7d2 (diff)
downloadart-7edf7c81724ecdc59847436ef451881b7ba54261.zip
art-7edf7c81724ecdc59847436ef451881b7ba54261.tar.gz
art-7edf7c81724ecdc59847436ef451881b7ba54261.tar.bz2
Merge "Clean up Add/Remove space."
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 5533f3d..d3b5cdc 100644
--- a/runtime/gc/heap.h
+++ b/runtime/gc/heap.h
@@ -283,11 +283,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.