summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-09-04 22:20:54 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-04 22:20:54 +0000
commit5b83621898cf3dcecbfea72a42940dfe92429f84 (patch)
tree5519d616f37d7cefd4e28c69759b9d1c37ed31df /dalvik
parentbf02b3f81048b0d81b3f0999675071c91c2f17e5 (diff)
parentbbd514c856add7ed7cf362fae731e3737a257079 (diff)
downloadlibcore-5b83621898cf3dcecbfea72a42940dfe92429f84.zip
libcore-5b83621898cf3dcecbfea72a42940dfe92429f84.tar.gz
libcore-5b83621898cf3dcecbfea72a42940dfe92429f84.tar.bz2
am bbd514c8: Merge "Libcore: Add parameter to zygote hook"
* commit 'bbd514c856add7ed7cf362fae731e3737a257079': Libcore: Add parameter to zygote hook
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 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