summaryrefslogtreecommitdiff
path: root/java/dexpreopt_config.go
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-02-23 17:50:46 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2023-02-23 17:50:46 +0000
commit8e9ea8bb83bdab080c696d05eb1676b8dba0d35f (patch)
tree3fbc15ac1393f549b150d7887930492e2d947e42 /java/dexpreopt_config.go
parentaf8b9503575549d046470fde9b9e985278a17b87 (diff)
Add a new option `compilerFilter` to `bootImageConfig`.
After this change, the compiler filter can be specified by the option, and profiles will not be used if the compiler filter is not a profile-guided one. This change also allows preloadedClassesFile to be empty. Bug: 269230245 Test: m Change-Id: I65e6b7209d2f0510bcc784a62623ab402b7f96bb
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r--java/dexpreopt_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go
index 4d0bd09c6..2975130f3 100644
--- a/java/dexpreopt_config.go
+++ b/java/dexpreopt_config.go
@@ -63,6 +63,7 @@ func genBootImageConfigRaw(ctx android.PathContext) map[string]*bootImageConfig
profileInstallPathInApex: "etc/boot-image.prof",
modules: artModules,
preloadedClassesFile: "art/build/boot/preloaded-classes",
+ compilerFilter: "speed-profile",
}
// Framework config for the boot image extension.
@@ -76,6 +77,7 @@ func genBootImageConfigRaw(ctx android.PathContext) map[string]*bootImageConfig
installDirOnDevice: frameworkSubdir,
modules: frameworkModules,
preloadedClassesFile: "frameworks/base/config/preloaded-classes",
+ compilerFilter: "speed-profile",
}
return map[string]*bootImageConfig{