Fix target utilization property_get.
Copy and paste error where wrong compare meant the code thought a target utilization option was specified even if there wasn't one. b/7062303 Change-Id: Ibf1c6cf72743c5fbec7618a719d12d0373184754
This commit is contained in:
committed by
Android Git Automerger
parent
8146624382
commit
7fef2b8a37
@@ -574,7 +574,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
|
||||
|
||||
strcpy(heaptargetutilizationOptsBuf, "-XX:HeapTargetUtilization=");
|
||||
property_get("dalvik.vm.heaptargetutilization", heaptargetutilizationOptsBuf+26, "");
|
||||
if (heapmaxfreeOptsBuf[26] != '\0') {
|
||||
if (heaptargetutilizationOptsBuf[26] != '\0') {
|
||||
opt.optionString = heaptargetutilizationOptsBuf;
|
||||
mOptions.add(opt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user