summaryrefslogtreecommitdiffstats
path: root/runtime/parsed_options.cc
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-02-16 13:51:51 +0000
committerNarayan Kamath <narayan@google.com>2015-02-21 11:19:07 +0000
commit5a2be3f40125af8b25fbbd9d55dc968168c76ed7 (patch)
tree070b920e71c927f112a6922f5e7b59668392f762 /runtime/parsed_options.cc
parentd98ff78976696fdde1e7868d4687719a0439544b (diff)
downloadart-5a2be3f40125af8b25fbbd9d55dc968168c76ed7.tar.gz
art-5a2be3f40125af8b25fbbd9d55dc968168c76ed7.tar.bz2
art-5a2be3f40125af8b25fbbd9d55dc968168c76ed7.zip
Implement a simple count based boot marker.
We write the number of failed boots to the marker and only prune the dalvik cache if the number of consecutive failed boots is higher than a predefined threshold. Note that the code is forgiving of errors related to boot markers; we continue the boot process even if we're unable to create / write or flush the boot marker. bug: 19360096 Change-Id: Ia17c3b783318ddf43c9199d0f7f09c54a4176667
Diffstat (limited to 'runtime/parsed_options.cc')
-rw-r--r--runtime/parsed_options.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index daa4373816..99369ca35d 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -238,6 +238,9 @@ std::unique_ptr<RuntimeParser> ParsedOptions::MakeParser(bool ignore_unrecognize
.Define("-XX:NativeBridge=_")
.WithType<std::string>()
.IntoKey(M::NativeBridge)
+ .Define("-Xzygote-max-failed-boots=_")
+ .WithType<unsigned int>()
+ .IntoKey(M::ZygoteMaxFailedBoots)
.Ignore({
"-ea", "-da", "-enableassertions", "-disableassertions", "--runtime-arg", "-esa",
"-dsa", "-enablesystemassertions", "-disablesystemassertions", "-Xrs", "-Xint:_",