OSDN Git Service

Add fallback for non moving space being full.
authorMathieu Chartier <mathieuc@google.com>
Fri, 22 Aug 2014 21:53:04 +0000 (14:53 -0700)
committerMathieu Chartier <mathieuc@google.com>
Sat, 23 Aug 2014 01:01:39 +0000 (18:01 -0700)
commit6a7824dc81aaab3cb09ced16affca72d1b1da649
treeef5eb2f5f882fb1e1c8f3abb00d2837521e62b59
parente18aa4316eb9a15cd6b1051f27a1ce49967c170e
Add fallback for non moving space being full.

When the non moving space becomes full, we disable moving GC and
make the main space the new non moving space.

Also added a runtime option for changing the non moving space size:
-XX:NonMovingSpaceCapacity.

Bug: 17189964

(cherry picked from commit 4c5a469683e433f126c9863cd393747d2e7c4a29)

Change-Id: If82e3c6f8a0f389e37e14a0b1e6d5126d571fd7a
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/gc/space/malloc_space.h
runtime/parsed_options.cc
runtime/parsed_options.h
runtime/runtime.cc