diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-12 01:00:50 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-12 01:00:50 +0000 |
commit | 3d87ae851a8a33ad4393d138c5a06208d0b3f806 (patch) | |
tree | b27b01463388755905959e32acc9072ac333e7c0 | |
parent | f105de9a9d5cc86c2fe5d724af9cbee488d70d7b (diff) | |
parent | 7b4fead5e9441eeb9ff5a9336d500b49ffae8d97 (diff) |
Snap for 7633965 from 7b4fead5e9441eeb9ff5a9336d500b49ffae8d97 to sc-d1-release
Change-Id: Ib2ff1afa64c60b6a11f16acca690a75b9c3a840b
-rw-r--r-- | odrefresh/odrefresh.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc index cda39eee04..2cef50dfb2 100644 --- a/odrefresh/odrefresh.cc +++ b/odrefresh/odrefresh.cc @@ -1139,7 +1139,13 @@ class OnDeviceRefresh final { AddDex2OatInstructionSet(&args, isa); const std::string jar_name(android::base::Basename(jar)); const std::string profile = Concatenate({GetAndroidRoot(), "/framework/", jar_name, ".prof"}); - AddDex2OatProfileAndCompilerFilter(&args, profile); + std::string compiler_filter = + android::base::GetProperty("dalvik.vm.systemservercompilerfilter", "speed"); + if (compiler_filter == "speed-profile") { + AddDex2OatProfileAndCompilerFilter(&args, profile); + } else { + args.emplace_back("--compiler-filter=" + compiler_filter); + } const std::string image_location = GetSystemServerImagePath(/*on_system=*/false, jar); const std::string install_location = android::base::Dirname(image_location); |