summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-31 14:54:03 -0700
committerAndreas Gampe <agampe@google.com>2015-03-31 17:42:52 -0700
commit9106e52a47042043edfb2a0fea05f28d52903c47 (patch)
treef0b9980d0f6de6b73c734afc47b50c6bd3d8173b /runtime
parentdcff612c3a6e1427749771c4559f198fa480f709 (diff)
downloadart-9106e52a47042043edfb2a0fea05f28d52903c47.tar.gz
art-9106e52a47042043edfb2a0fea05f28d52903c47.tar.bz2
art-9106e52a47042043edfb2a0fea05f28d52903c47.zip
ART: Set default prune counter to 10
By default, prune cache at boot after ten failed boots. Bug: 19983101 Change-Id: Ib88f807e0082d71292c14c7af38e02cca5a5602c
Diffstat (limited to 'runtime')
-rw-r--r--runtime/parsed_options.cc2
-rw-r--r--runtime/runtime_options.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index 337c5df610..89779bc413 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -250,7 +250,7 @@ std::unique_ptr<RuntimeParser> ParsedOptions::MakeParser(bool ignore_unrecognize
.Define("-XX:NativeBridge=_")
.WithType<std::string>()
.IntoKey(M::NativeBridge)
- .Define("-Xzygote-max-failed-boots=_")
+ .Define("-Xzygote-max-boot-retry=_")
.WithType<unsigned int>()
.IntoKey(M::ZygoteMaxFailedBoots)
.Define("-Xno-dex-file-fallback")
diff --git a/runtime/runtime_options.def b/runtime/runtime_options.def
index 1f273cf87b..339f925f55 100644
--- a/runtime/runtime_options.def
+++ b/runtime/runtime_options.def
@@ -119,7 +119,7 @@ RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \
// We don't call abort(3) by default; see
// Runtime::Abort.
RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr)
-RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 1)
+RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10)
RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback)
#undef RUNTIME_OPTIONS_KEY