summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-09-02 21:20:51 -0700
committerAndreas Gampe <agampe@google.com>2014-09-03 14:06:25 -0700
commit255f6218025d5673b1e347b1c31b23202587f8f6 (patch)
tree5b817634e929b3779dfe034e1e77db3a9206d028 /dalvik
parent4f10651fff7200d688e5dda1508448f8b34e4d9f (diff)
downloadlibcore-255f6218025d5673b1e347b1c31b23202587f8f6.tar.gz
libcore-255f6218025d5673b1e347b1c31b23202587f8f6.tar.bz2
libcore-255f6218025d5673b1e347b1c31b23202587f8f6.zip
Libcore: Add parameter to zygote hook
Add a parameter to be passed to ART. Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/ZygoteHooks.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
index fa4f392f9..11ea2862f 100644
--- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
+++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
@@ -42,10 +42,11 @@ public final class ZygoteHooks {
/**
* Called by the zygote in the child process after every fork. The debug
- * flags from {@code debugFlags} are applied to the child process.
+ * 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) {
- nativePostForkChild(token, debugFlags);
+ public void postForkChild(int debugFlags, String instructionSet) {
+ nativePostForkChild(token, debugFlags, instructionSet);
}
/**
@@ -58,7 +59,8 @@ public final class ZygoteHooks {
}
private static native long nativePreFork();
- private static native void nativePostForkChild(long token, int debugFlags);
+ private static native void nativePostForkChild(long token, int debugFlags,
+ String instructionSet);
/**
* We must not fork until we're single-threaded again. Wait until /proc shows we're