summaryrefslogtreecommitdiff
path: root/dalvik
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2019-10-30 09:46:24 +0000
committerNicolas Geoffray <ngeoffray@google.com>2019-10-30 09:46:24 +0000
commit66f7c9d6d0534ecc3bf5156a7af6f13a1a211358 (patch)
tree0deea6a72becf9889f5c784fa79565123f54bd8f /dalvik
parent7f9a924c18f4fb6fbe8ed43009c857b4763cefa1 (diff)
[jitzygote] Notify post fork to the runtime before creating new threads.
Allows the runtime to run code single-threaded post fork. Bug: 143569713 Bug: 119800099 Test: boots Change-Id: I3c1be4fca007e068eda168fc8a0ee3e388f73113
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/ZygoteHooks.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
index 13769e137e..14d554a25a 100644
--- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
+++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
@@ -136,8 +136,9 @@ public final class ZygoteHooks {
*/
@libcore.api.CorePlatformApi
public static void postForkCommon() {
- Daemons.startPostZygoteFork();
+ // Notify the runtime before creating new threads.
nativePostZygoteFork();
+ Daemons.startPostZygoteFork();
}