odrefresh: update flags to dex2oat
Updates following performance investigation.
Adds: --no-abort-on-soft-verifier-error --force-determinism
Changes: --image-format=lz4hc to --image-format=lz4
Removes: --generate-debug-info
Bug: 160683548
Bug: 181943478
Test: adb install com.android.art.apex && adb reboot && check artifacts
Change-Id: I79f171760c25858c629fb07004246a5bd5eb4874
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc
index ea65d4c..2518b28 100644
--- a/odrefresh/odrefresh.cc
+++ b/odrefresh/odrefresh.cc
@@ -618,8 +618,10 @@
static void AddDex2OatCommonOptions(/*inout*/ std::vector<std::string>& args) {
args.emplace_back("--android-root=out/empty");
args.emplace_back("--abort-on-hard-verifier-error");
+ args.emplace_back("--no-abort-on-soft-verifier-error");
args.emplace_back("--compilation-reason=boot");
- args.emplace_back("--image-format=lz4hc");
+ args.emplace_back("--image-format=lz4");
+ args.emplace_back("--force-determinism");
args.emplace_back("--resolve-startup-const-strings=true");
}
@@ -638,7 +640,6 @@
}
static void AddDex2OatDebugInfo(/*inout*/ std::vector<std::string>& args) {
- args.emplace_back("--generate-debug-info");
args.emplace_back("--generate-mini-debug-info");
args.emplace_back("--strip");
}