Merge "Allow tuning of heaptargetutilization" am: 0e3e2a73c6

am: e673072feb

Change-Id: Ia7114c1d9fbee42ce27372947702c580bfd3159c
This commit is contained in:
David Sehr
2019-12-09 13:40:46 -08:00
committed by android-build-merger
2 changed files with 2 additions and 7 deletions

View File

@@ -30,8 +30,10 @@ import android.os.SystemProperties;
import android.os.Trace;
import android.util.Log;
import android.util.Slog;
import com.android.internal.logging.AndroidConfig;
import com.android.server.NetworkManagementSocketTagger;
import dalvik.system.RuntimeHooks;
import dalvik.system.VMRuntime;
@@ -374,9 +376,6 @@ public class RuntimeInit {
// leftover running threads to crash before the process actually exits.
nativeSetExitWithoutCleanup(true);
// We want to be fairly aggressive about heap utilization, to avoid
// holding on to a lot of memory that isn't needed.
VMRuntime.getRuntime().setTargetHeapUtilization(0.75f);
VMRuntime.getRuntime().setTargetSdkVersion(targetSdkVersion);
final Arguments args = new Arguments(argv);