installd: add dex2oat cpu-set system properties
The naming for these follows the convention of the dex2oat-*thread
system properties:
dalvik.vm.dex2oat-cpu-set [default compiler thread affinity]
dalvik.vm.boot-dex2oat-cpu-set [compiler thread affinity for boot]
dalvik.vm.image-dex2oat-cpu-set [thread affinity recompiling the boot image]
Bug: 141446571
Test: add cpu-set properties to target/product/sdk_phone_x86.mk;
Test: lunch sdk_phone_x86-userdebug; m; emulator &
Test: atest -s emulator-5554 --test-mapping frameworks/native/cmds/installd:presubmit
Change-Id: Ic0d452fd1f2a9f94a55c39715111728b8104822a
diff --git a/cmds/installd/otapreopt.cpp b/cmds/installd/otapreopt.cpp
index db36ce3..eefbe4f 100644
--- a/cmds/installd/otapreopt.cpp
+++ b/cmds/installd/otapreopt.cpp
@@ -480,6 +480,10 @@
"-j",
false,
cmd);
+ AddCompilerOptionFromSystemProperty("dalvik.vm.image-dex2oat-cpu-set",
+ "--cpu-set=",
+ false,
+ cmd);
AddCompilerOptionFromSystemProperty(
StringPrintf("dalvik.vm.isa.%s.variant", isa).c_str(),
"--instruction-set-variant=",