mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-07 01:52:42 +00:00
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Wed, 11 Sep 2019 06:57:24 -0400
|
|
Subject: [PATCH] disable preloading classloaders for exec spawning
|
|
|
|
---
|
|
core/java/com/android/internal/os/ZygoteInit.java | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java
|
|
index 209b9f6855fd..31c6ce82ca93 100644
|
|
--- a/core/java/com/android/internal/os/ZygoteInit.java
|
|
+++ b/core/java/com/android/internal/os/ZygoteInit.java
|
|
@@ -142,9 +142,11 @@ public class ZygoteInit {
|
|
preloadClasses();
|
|
bootTimingsTraceLog.traceEnd(); // PreloadClasses
|
|
}
|
|
- bootTimingsTraceLog.traceBegin("CacheNonBootClasspathClassLoaders");
|
|
- cacheNonBootClasspathClassLoaders();
|
|
- bootTimingsTraceLog.traceEnd(); // CacheNonBootClasspathClassLoaders
|
|
+ if (fullPreload) {
|
|
+ bootTimingsTraceLog.traceBegin("CacheNonBootClasspathClassLoaders");
|
|
+ cacheNonBootClasspathClassLoaders();
|
|
+ bootTimingsTraceLog.traceEnd(); // CacheNonBootClasspathClassLoaders
|
|
+ }
|
|
if (fullPreload) {
|
|
bootTimingsTraceLog.traceBegin("PreloadResources");
|
|
preloadResources();
|