summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-09-04 21:47:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-04 21:47:18 +0000
commitbbd514c856add7ed7cf362fae731e3737a257079 (patch)
tree04a57f0f0586a2e69607a7b8c3cee233fcc880a0
parentfc5a9bde9565f9d6d5aaf1155743a669c37f7f08 (diff)
parent255f6218025d5673b1e347b1c31b23202587f8f6 (diff)
downloadlibcore-bbd514c856add7ed7cf362fae731e3737a257079.zip
libcore-bbd514c856add7ed7cf362fae731e3737a257079.tar.gz
libcore-bbd514c856add7ed7cf362fae731e3737a257079.tar.bz2
Merge "Libcore: Add parameter to zygote hook"
-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 fa4f392..11ea286 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