diff options
| author | Mathieu Chartier <mathieuc@google.com> | 2019-08-29 16:18:49 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-08-29 16:18:49 -0700 |
| commit | 6c0c2ad9c07f46f3503aaec144ee572b3907e40e (patch) | |
| tree | caf44ae6b20b2f73a0a4d225e905001fbeabeeea /core/java | |
| parent | 31640c43829739594886f84a85b58465099e5bfb (diff) | |
| parent | 4d7a214df6918c77c02039074ea2b102579e032d (diff) | |
Merge "Clean up class preloading" am: 4082bc010b am: 5b2da73fa3 am: 8a3781df49 am: 47313fedf1
am: 4d7a214df6
Change-Id: I7411cf45dafe63525df871ba7052aa1540a4d951
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/os/ZygoteInit.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java index 9ea9b06ea050..b5d494540f8a 100644 --- a/core/java/com/android/internal/os/ZygoteInit.java +++ b/core/java/com/android/internal/os/ZygoteInit.java @@ -92,11 +92,6 @@ public class ZygoteInit { private static final int LOG_BOOT_PROGRESS_PRELOAD_START = 3020; private static final int LOG_BOOT_PROGRESS_PRELOAD_END = 3030; - /** - * when preloading, GC after allocating this many bytes - */ - private static final int PRELOAD_GC_THRESHOLD = 50000; - private static final String ABI_LIST_ARG = "--abi-list="; // TODO (chriswailes): Re-name this --zygote-socket-name= and then add a @@ -281,11 +276,6 @@ public class ZygoteInit { droppedPriviliges = true; } - // Alter the target heap utilization. With explicit GCs this - // is not likely to have any effect. - float defaultUtilization = runtime.getTargetHeapUtilization(); - runtime.setTargetHeapUtilization(0.8f); - try { BufferedReader br = new BufferedReader(new InputStreamReader(is), Zygote.SOCKET_BUFFER_SIZE); @@ -301,9 +291,6 @@ public class ZygoteInit { Trace.traceBegin(Trace.TRACE_TAG_DALVIK, line); try { - if (false) { - Log.v(TAG, "Preloading " + line + "..."); - } // Load and explicitly initialize the given class. Use // Class.forName(String, boolean, ClassLoader) to avoid repeated stack lookups // (to derive the caller's class-loader). Use true to force initialization, and @@ -334,8 +321,6 @@ public class ZygoteInit { Log.e(TAG, "Error reading " + PRELOADED_CLASSES + ".", e); } finally { IoUtils.closeQuietly(is); - // Restore default. - runtime.setTargetHeapUtilization(defaultUtilization); // Fill in dex caches with classes, fields, and methods brought in by preloading. Trace.traceBegin(Trace.TRACE_TAG_DALVIK, "PreloadDexCaches"); |
