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
Change-Id: I04d00d0f457f6c1f5724bf32932b6b6ce4d341b1
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 855effa..0f419b1 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -596,6 +596,7 @@
options->heap_target_utilization_,
options->foreground_heap_growth_multiplier_,
options->heap_maximum_size_,
+ options->heap_non_moving_space_capacity_,
options->image_,
options->image_isa_,
options->collector_type_,