diff options
author | Hans Boehm <hboehm@google.com> | 2021-06-24 17:10:22 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 24e4d42b29cef8d3a29ba66fbea474948ac42d7f (patch) | |
tree | e0852278704367a026336772bd6f0b17d25d3fc7 | |
parent | 28d4aedb4e580b29248493212f76df8d272f88f8 (diff) |
Rename nativeZygoteJitEnabled
... to nativeZygoteLongSuspendOk to reflect its changed semantics.
Bug: 192020504
Test: Boot and look at log with both options
Change-Id: Id8cf5f5b9924c34ff578bf19f53fee1561f7dda6
-rw-r--r-- | dalvik/src/main/java/dalvik/system/ZygoteHooks.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java index f05ea2cca6..51a08acc6a 100644 --- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java +++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java @@ -156,16 +156,11 @@ public final class ZygoteHooks { /** * Is it safe to keep all ART daemon threads stopped indefinitely in the zygote? * The answer may change from false to true dynamically, but not in the other - * direction. + * direction. Only called in Zygote. */ @libcore.api.CorePlatformApi public static boolean indefiniteThreadSuspensionOK() { - // TODO: Make this return true if we're done with JIT compilation. - // - // We only care about JIT compilation that affects other processes. - // The zygote itself doesn't run appreciable amounts of Java code when - // running single-threaded. - return !nativeZygoteJitEnabled(); + return nativeZygoteLongSuspendOk(); } // Hook for SystemServer specific early initialization post-forking. @@ -179,7 +174,7 @@ public final class ZygoteHooks { boolean isSystemServer, boolean isZygote, String instructionSet); - private static native boolean nativeZygoteJitEnabled(); + private static native boolean nativeZygoteLongSuspendOk(); /** * We must not fork until we're single-threaded again. Wait until /proc shows we're |