summaryrefslogtreecommitdiffstats
path: root/runtime/gc/heap.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-02-27 11:14:21 -0800
committerMathieu Chartier <mathieuc@google.com>2014-02-27 11:50:09 -0800
commitbd0a65339a08dc28c6b56d2673f1f13b6bddd7aa (patch)
treebf78a1fc3ca89fd753518d351b5d3f18ed2906b2 /runtime/gc/heap.h
parente58d0203351d9740a8f74a140fdee342168e6552 (diff)
downloadart-bd0a65339a08dc28c6b56d2673f1f13b6bddd7aa.zip
art-bd0a65339a08dc28c6b56d2673f1f13b6bddd7aa.tar.gz
art-bd0a65339a08dc28c6b56d2673f1f13b6bddd7aa.tar.bz2
Enable large object space for command line runs.
Added a dynamic large_object_threshold_ variable which is max int when the large object space is disabled. No longer clear timing logger timings after zygote creation since it is not required and removes the boot semispace timings. Change-Id: I693865f4699cc32381199377239854c6ec42f37e
Diffstat (limited to 'runtime/gc/heap.h')
-rw-r--r--runtime/gc/heap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h
index 5d3232f..2f227d0 100644
--- a/runtime/gc/heap.h
+++ b/runtime/gc/heap.h
@@ -119,7 +119,7 @@ class Heap {
// If true, measure the total allocation time.
static constexpr bool kMeasureAllocationTime = false;
// Primitive arrays larger than this size are put in the large object space.
- static constexpr size_t kLargeObjectThreshold = 3 * kPageSize;
+ static constexpr size_t kDefaultLargeObjectThreshold = 3 * kPageSize;
static constexpr size_t kDefaultInitialSize = 2 * MB;
static constexpr size_t kDefaultMaximumSize = 32 * MB;
@@ -743,6 +743,9 @@ class Heap {
// If we have a zygote space.
bool have_zygote_space_;
+ // Minimum allocation size of large object.
+ size_t large_object_threshold_;
+
// Guards access to the state of GC, associated conditional variable is used to signal when a GC
// completes.
Mutex* gc_complete_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;