diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-19 13:43:37 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-20 10:26:42 -0700 |
commit | e86deeffad79c00ed2ebede04f4adc348bda790c (patch) | |
tree | f0952116fe2fa933c8c9827e83caf4432f0339da /dex2oat | |
parent | 2f5904383a7b7ffb741c8839ec3c60762860bad3 (diff) | |
download | art-e86deeffad79c00ed2ebede04f4adc348bda790c.zip art-e86deeffad79c00ed2ebede04f4adc348bda790c.tar.gz art-e86deeffad79c00ed2ebede04f4adc348bda790c.tar.bz2 |
Add verify-at-runtime compiler filter
Verifies at runtime only, instead of at compilation time.
AOSP HH boot time after clean-oat: ~30s instead of ~35s if enabled.
Also helps install time if enabled there.
TODO: See if there is any possible deadlocks that can result from
this.
Bug: 19762303
Change-Id: Ibfba77148da9039e8d7d7497c05486bc044eefe7
Diffstat (limited to 'dex2oat')
-rw-r--r-- | dex2oat/dex2oat.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index a372179..67c96fd 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -894,6 +894,8 @@ class Dex2Oat FINAL { compiler_filter = CompilerOptions::kVerifyNone; } else if (strcmp(compiler_filter_string, "interpret-only") == 0) { compiler_filter = CompilerOptions::kInterpretOnly; + } else if (strcmp(compiler_filter_string, "verify-at-runtime") == 0) { + compiler_filter = CompilerOptions::kVerifyAtRuntime; } else if (strcmp(compiler_filter_string, "space") == 0) { compiler_filter = CompilerOptions::kSpace; } else if (strcmp(compiler_filter_string, "balanced") == 0) { |