mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-16 22:41:55 +00:00
055ed9bfad
Signed-off-by: Tad <tad@spotco.us>
43 lines
1.8 KiB
Diff
43 lines
1.8 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Fri, 15 Oct 2021 00:00:10 +0300
|
|
Subject: [PATCH] disable cache pinning for exec spawning
|
|
|
|
---
|
|
.../src/main/java/dalvik/system/ZygoteHooks.java | 14 +++++++++-----
|
|
1 file changed, 9 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
|
|
index b770e02a906..70743a320a5 100644
|
|
--- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
|
|
+++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
|
|
@@ -66,11 +66,13 @@ public final class ZygoteHooks {
|
|
*/
|
|
@SystemApi(client = MODULE_LIBRARIES)
|
|
public static void onBeginPreload(boolean fullPreload) {
|
|
- com.android.i18n.system.ZygoteHooks.onBeginPreload();
|
|
+ if (fullPreload) {
|
|
+ com.android.i18n.system.ZygoteHooks.onBeginPreload();
|
|
|
|
- ICU.initializeCacheInZygote();
|
|
- DecimalFormatData.initializeCacheInZygote();
|
|
- SimpleDateFormatData.initializeCacheInZygote();
|
|
+ ICU.initializeCacheInZygote();
|
|
+ DecimalFormatData.initializeCacheInZygote();
|
|
+ SimpleDateFormatData.initializeCacheInZygote();
|
|
+ }
|
|
|
|
// Look up JaCoCo on the boot classpath, if it exists. This will be used later for enabling
|
|
// memory-mapped Java coverage.
|
|
@@ -103,7 +105,9 @@ public final class ZygoteHooks {
|
|
*/
|
|
@SystemApi(client = MODULE_LIBRARIES)
|
|
public static void onEndPreload(boolean fullPreload) {
|
|
- com.android.i18n.system.ZygoteHooks.onEndPreload();
|
|
+ if (fullPreload) {
|
|
+ com.android.i18n.system.ZygoteHooks.onEndPreload();
|
|
+ }
|
|
|
|
// Clone standard descriptors as originals closed / rebound during zygote post fork.
|
|
FileDescriptor.in.cloneForFork();
|