diff options
author | Narayan Kamath <narayan@google.com> | 2014-03-31 12:13:03 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-31 12:13:03 +0000 |
commit | 9c35ce4ed21698062c154a79e9bdbc0e893ce303 (patch) | |
tree | d4a0f1fb992970a46f3963e36eb79d232af525d2 /dalvik/src | |
parent | e1d9a9c43becac8ab9480fab514879e006cb4f55 (diff) | |
parent | db96523247dc13caa762b7656f3375a4a8e15905 (diff) | |
download | libcore-9c35ce4ed21698062c154a79e9bdbc0e893ce303.zip libcore-9c35ce4ed21698062c154a79e9bdbc0e893ce303.tar.gz libcore-9c35ce4ed21698062c154a79e9bdbc0e893ce303.tar.bz2 |
am db965232: am 6586cc6f: Merge "Remove Zygote.fork"
* commit 'db96523247dc13caa762b7656f3375a4a8e15905':
Remove Zygote.fork
Diffstat (limited to 'dalvik/src')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/Zygote.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/dalvik/src/main/java/dalvik/system/Zygote.java b/dalvik/src/main/java/dalvik/system/Zygote.java index 62ba7b0..7e320f2 100644 --- a/dalvik/src/main/java/dalvik/system/Zygote.java +++ b/dalvik/src/main/java/dalvik/system/Zygote.java @@ -87,23 +87,6 @@ public class Zygote { } /** - * Forks a new Zygote instance, but does not leave the zygote mode. - * The current VM must have been started with the -Xzygote flag. The - * new child is expected to eventually call forkAndSpecialize() - * - * @return 0 if this is the child, pid of the child - * if this is the parent, or -1 on error - */ - public static int fork() { - preFork(); - int pid = nativeFork(); - postFork(); - return pid; - } - - native public static int nativeFork(); - - /** * Forks a new VM instance. The current VM must have been started * with the -Xzygote flag. <b>NOTE: new instance keeps all * root capabilities. The new process is expected to call capset()</b>. |