diff options
author | Vladimir Marko <vmarko@google.com> | 2020-02-20 13:44:11 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2020-02-20 16:04:52 +0000 |
commit | ef46e101be0afb84898a9ac37af1f1f6c1677cf4 (patch) | |
tree | fd0de3e4973695b8b36904607e003f7d26a8732d /compiler/driver/compiler_options.h | |
parent | e78b50eb15898ceae461ef016d510f7c941f9158 (diff) |
Do not verify dex files for --compiler-filter=assume-verified.
Reduces the compilation time for the boot image extension
with said filter by over 0.5s (comparing the best observed
timing "before" to the worst observed timing "after").
Test: aosp_taimen-userdebug boots;
adb root && \
adb shell stop && \
adb shell setprop dalvik.vm.boot-image \
'boot.art:/nonx/boot-framework.art!/system/etc/boot-image.prof' && \
adb shell 'setprop dalvik.vm.extra-opts \
"-Ximage-compiler-option --compiler-filter=assume-verified"' && \
adb shell start # Starts correctly
# Check dex2oat timing in logcat
Bug: 119800099
Change-Id: I3fc82c9485385ff5e0ccc5031e1141a685ee6c19
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index c05ff89beb..747205e4e5 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -103,6 +103,10 @@ class CompilerOptions final { return CompilerFilter::IsVerificationEnabled(compiler_filter_); } + bool AssumeDexFilesAreVerified() const { + return compiler_filter_ == CompilerFilter::kAssumeVerified; + } + bool AssumeClassesAreVerified() const { return compiler_filter_ == CompilerFilter::kAssumeVerified; } |