summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-02-19 06:33:37 -0800
committer android-build-merger <android-build-merger@google.com> 2019-02-19 06:33:37 -0800
commita800ad6efa7134da32ac357bf6c49bb512c0810d (patch)
treed68486a08ab8b4e7097255125c9c127a69c3cdeb
parent02f7e747356f3150d2237799619a9f822f31a83e (diff)
parenta2849b1aecab5fa9db4ad2185e46cb2f80620982 (diff)
Merge "Add a dalvik.vm.boot-image option for zygote and installd."
am: a2849b1aec Change-Id: I4be1fc0a076c76c6de575fd3f832be87e9b273e3
-rw-r--r--cmds/installd/dexopt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp
index 15b619ad59..34218008e9 100644
--- a/cmds/installd/dexopt.cpp
+++ b/cmds/installd/dexopt.cpp
@@ -352,6 +352,8 @@ class RunDex2Oat : public ExecVHelper {
bool generate_minidebug_info = kEnableMinidebugInfo &&
GetBoolProperty(kMinidebugInfoSystemProperty, kMinidebugInfoSystemPropertyDefault);
+ std::string boot_image = MapPropertyToArg("dalvik.vm.boot-image", "-Ximage:%s");
+
// clang FORTIFY doesn't let us use strlen in constant array bounds, so we
// use arraysize instead.
std::string zip_fd_arg = StringPrintf("--zip-fd=%d", zip_fd);
@@ -437,6 +439,7 @@ class RunDex2Oat : public ExecVHelper {
AddArg(instruction_set_variant_arg);
AddArg(instruction_set_features_arg);
+ AddRuntimeArg(boot_image);
AddRuntimeArg(dex2oat_Xms_arg);
AddRuntimeArg(dex2oat_Xmx_arg);