From 5ccd498d4aa450b0381344724b072a932709a59a Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Tue, 11 Mar 2014 12:19:04 -0700 Subject: Put the post zygote non-moving space next to the malloc space. This change fixes the following problem with the GSS collector: if the post zygote non-moving space happens to be located after the bump pointer spaces, the bump pointer space is treated wrongfully as an immune space. The reasons are 1) the immune space is represented by a simple address range and 2) the GSS collector treats the post zygote non-moving space as an immune space at a bump pointer space only collection. In addition, this change makes it a reality that all the non-moving spaces are adjacent, which we tend to assume in the code (eg. the notion of the immune space represented by a simple address range.) This should help avoid potential confusions in the future. Fix a DCHECK failure where usable_size isn't set properly when -XX:UseTLAB is used. Change-Id: I585920e433744a390f87e9a25bef6114b2a4623f --- runtime/gc/heap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/gc/heap.h') diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h index 3a8739a..797f44c 100644 --- a/runtime/gc/heap.h +++ b/runtime/gc/heap.h @@ -120,6 +120,7 @@ class Heap { // Primitive arrays larger than this size are put in the large object space. static constexpr size_t kDefaultLargeObjectThreshold = 3 * kPageSize; + static constexpr size_t kDefaultStartingSize = kPageSize; static constexpr size_t kDefaultInitialSize = 2 * MB; static constexpr size_t kDefaultMaximumSize = 32 * MB; static constexpr size_t kDefaultMaxFree = 2 * MB; -- cgit v1.1