Skip to content

Commit e983008

Browse files
committed
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
1 parent 17d5f47 commit e983008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/AndroidRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
574574

575575
strcpy(heaptargetutilizationOptsBuf, "-XX:HeapTargetUtilization=");
576576
property_get("dalvik.vm.heaptargetutilization", heaptargetutilizationOptsBuf+26, "");
577-
if (heapmaxfreeOptsBuf[26] != '\0') {
577+
if (heaptargetutilizationOptsBuf[26] != '\0') {
578578
opt.optionString = heaptargetutilizationOptsBuf;
579579
mOptions.add(opt);
580580
}

0 commit comments

Comments
 (0)