mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-08-23 02:35:23 +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: Tue, 14 May 2019 14:30:59 -0400
|
||
|
Subject: [PATCH] disable class preloading 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 dbb1fb83f62d..2c681002eaf8 100644
|
||
|
--- a/core/java/com/android/internal/os/ZygoteInit.java
|
||
|
+++ b/core/java/com/android/internal/os/ZygoteInit.java
|
||
|
@@ -138,9 +138,11 @@ public class ZygoteInit {
|
||
|
bootTimingsTraceLog.traceBegin("BeginPreload");
|
||
|
beginPreload(fullPreload);
|
||
|
bootTimingsTraceLog.traceEnd(); // BeginPreload
|
||
|
- bootTimingsTraceLog.traceBegin("PreloadClasses");
|
||
|
- preloadClasses();
|
||
|
- bootTimingsTraceLog.traceEnd(); // PreloadClasses
|
||
|
+ if (fullPreload) {
|
||
|
+ bootTimingsTraceLog.traceBegin("PreloadClasses");
|
||
|
+ preloadClasses();
|
||
|
+ bootTimingsTraceLog.traceEnd(); // PreloadClasses
|
||
|
+ }
|
||
|
bootTimingsTraceLog.traceBegin("CacheNonBootClasspathClassLoaders");
|
||
|
cacheNonBootClasspathClassLoaders();
|
||
|
bootTimingsTraceLog.traceEnd(); // CacheNonBootClasspathClassLoaders
|