Special case system_server to not create the JIT code cache.
Change-Id: Ifb0897eee93c15039e80de40a10677e5386a906a
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
index 134c2f4..48f1fe2 100644
--- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
+++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
@@ -45,8 +45,8 @@
* flags from {@code debugFlags} are applied to the child process. The string
* {@code instructionSet} determines whether to use a native bridge.
*/
- public void postForkChild(int debugFlags, String instructionSet) {
- nativePostForkChild(token, debugFlags, instructionSet);
+ public void postForkChild(int debugFlags, boolean isSystemServer, String instructionSet) {
+ nativePostForkChild(token, debugFlags, isSystemServer, instructionSet);
Math.setRandomSeedInternal(System.currentTimeMillis());
}
@@ -62,7 +62,7 @@
private static native long nativePreFork();
private static native void nativePostForkChild(long token, int debugFlags,
- String instructionSet);
+ boolean isSystemServer, String instructionSet);
/**
* We must not fork until we're single-threaded again. Wait until /proc shows we're