diff options
| author | David Sehr <sehr@google.com> | 2019-12-09 13:40:46 -0800 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-12-09 13:40:46 -0800 |
| commit | f74eb32c121b7cd656d176e0def013a03f323798 (patch) | |
| tree | e42c3809c14a1b8c6c089ccd7efa7fd68c6bbca0 /core/java | |
| parent | e2dc83dd180f8d17c97a038f17046b6458c5be9d (diff) | |
| parent | e673072feb295ff3b5aa8ff6a4b0c4ff13a3b7ca (diff) | |
Merge "Allow tuning of heaptargetutilization" am: 0e3e2a73c6
am: e673072feb
Change-Id: Ia7114c1d9fbee42ce27372947702c580bfd3159c
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/os/RuntimeInit.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/com/android/internal/os/RuntimeInit.java b/core/java/com/android/internal/os/RuntimeInit.java index fd3cd42b07a1..a21187165c65 100644 --- a/core/java/com/android/internal/os/RuntimeInit.java +++ b/core/java/com/android/internal/os/RuntimeInit.java @@ -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); |
