
1114c3c1d4cd
ac1943345e
1abb805041
2e07ab8c24
0044836677
c561811fad
7a848373ef
89646bdeb1
2a70bbac4a
d414dcaa35
b4cd877e3a
98634286bb
114c2635390c
11add34a4bc6
11a2b51906de
10527787f3c8
ffde474ad7
aa87e487c4
c906fe9722
c69c3eecd4
b2303adccc
5bb05db6f7
536b497688
24802a832b
ce6dcc2368
3d3d5c4d38
2eda592b79
1029f28b53c0
1013a992c716
9750efbf6bc
ed563b6f26
aad3c7d750
da3180f9a8
68773a29b7
283b3fa09c
f133136b65
01a01ce5f6
17c309c098
8806ec3ef1
Signed-off-by: Tad <tad@spotco.us>
51 lines
2.0 KiB
Diff
51 lines
2.0 KiB
Diff
From c69c3eecd4f34a932760303e10e3a47798335f7e Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Wed, 11 Sep 2019 06:43:55 -0400
|
|
Subject: [PATCH] pass through fullPreload to libcore
|
|
|
|
---
|
|
core/java/com/android/internal/os/ZygoteInit.java | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java
|
|
index e59cb784dc78..22e3f549dad5 100644
|
|
--- a/core/java/com/android/internal/os/ZygoteInit.java
|
|
+++ b/core/java/com/android/internal/os/ZygoteInit.java
|
|
@@ -135,7 +135,7 @@
|
|
static void preload(TimingsTraceLog bootTimingsTraceLog, boolean fullPreload) {
|
|
Log.d(TAG, "begin preload");
|
|
bootTimingsTraceLog.traceBegin("BeginPreload");
|
|
- beginPreload();
|
|
+ beginPreload(fullPreload);
|
|
bootTimingsTraceLog.traceEnd(); // BeginPreload
|
|
bootTimingsTraceLog.traceBegin("PreloadClasses");
|
|
preloadClasses();
|
|
@@ -157,7 +157,7 @@ static void preload(TimingsTraceLog bootTimingsTraceLog, boolean fullPreload) {
|
|
// Ask the WebViewFactory to do any initialization that must run in the zygote process,
|
|
// for memory sharing purposes.
|
|
WebViewFactory.prepareWebViewInZygote();
|
|
- endPreload();
|
|
+ endPreload(fullPreload);
|
|
warmUpJcaProviders();
|
|
Log.d(TAG, "end preload");
|
|
|
|
@@ -175,14 +175,14 @@ public static void lazyPreload() {
|
|
preload(new TimingsTraceLog("ZygoteInitTiming_lazy", Trace.TRACE_TAG_DALVIK));
|
|
}
|
|
|
|
- private static void beginPreload() {
|
|
+ private static void beginPreload(boolean fullPreload) {
|
|
Log.i(TAG, "Calling ZygoteHooks.beginPreload()");
|
|
|
|
- ZygoteHooks.onBeginPreload();
|
|
+ ZygoteHooks.onBeginPreload(fullPreload);
|
|
}
|
|
|
|
- private static void endPreload() {
|
|
- ZygoteHooks.onEndPreload();
|
|
+ private static void endPreload(boolean fullPreload) {
|
|
+ ZygoteHooks.onEndPreload(fullPreload);
|
|
|
|
Log.i(TAG, "Called ZygoteHooks.endPreload()");
|
|
}
|