summaryrefslogtreecommitdiffstats
path: root/runtime/parsed_options.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-11-17 18:05:44 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2014-11-17 18:05:44 -0800
commit20ed5af7a623a2d095082f8d6f53151c46fb8842 (patch)
tree8fc5b4697b80cfcb76e75dc0fbb138310cdb6f99 /runtime/parsed_options.cc
parent974eb9554259536daa74a729ec917bf829ed0301 (diff)
downloadart-20ed5af7a623a2d095082f8d6f53151c46fb8842.tar.gz
art-20ed5af7a623a2d095082f8d6f53151c46fb8842.tar.bz2
art-20ed5af7a623a2d095082f8d6f53151c46fb8842.zip
Enable the hspace compaction on OOM by default.
(cherrypick commit d3f228062a1d71ce6ace2f31ecf369ae247633c2) Bug: 18377775 Change-Id: I4a0998c7f35b6418004e92bc07926abc9b74962a
Diffstat (limited to 'runtime/parsed_options.cc')
-rw-r--r--runtime/parsed_options.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index 1a97c357fa..3e6c86b7c9 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -105,11 +105,7 @@ ParsedOptions::ParsedOptions()
profile_clock_source_(kDefaultTraceClockSource),
verify_(true),
image_isa_(kRuntimeISA),
- use_homogeneous_space_compaction_for_oom_(false), // If we are using homogeneous space
- // compaction then default background
- // compaction to off since homogeneous
- // space compactions when we transition
- // to not jank perceptible.
+ use_homogeneous_space_compaction_for_oom_(true), // Enable hspace compaction on OOM by default.
min_interval_homogeneous_space_compaction_by_oom_(MsToNs(100 * 1000)) // 100s.
{}