summaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorDave Platt <dplatt@google.com>2014-02-13 13:33:54 -0800
committerDave Platt <dplatt@google.com>2014-02-13 13:33:54 -0800
commit4417adbdc0882abe859a849a8bf24c5da327bf2c (patch)
tree5af96e2bf25fc8444a9b1c98dab5325d8aca54e0 /vm
parent89982bf898454fefa8e2ce4a0aec3b49143fa296 (diff)
downloadandroid_dalvik-4417adbdc0882abe859a849a8bf24c5da327bf2c.tar.gz
android_dalvik-4417adbdc0882abe859a849a8bf24c5da327bf2c.tar.bz2
android_dalvik-4417adbdc0882abe859a849a8bf24c5da327bf2c.zip
Remove old fork-and-specialize API
As promised, this is the cleanup patch-set which removes the old native "fork and specialize" API, which has been replaced by a slightly-enhanced one which can close the Zygote socket descriptors in the Zygote child. Change-Id: I33f504afd242e268863270139b4e421d4b0728f2
Diffstat (limited to 'vm')
-rw-r--r--vm/native/dalvik_system_Zygote.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/vm/native/dalvik_system_Zygote.cpp b/vm/native/dalvik_system_Zygote.cpp
index 9eb483ae0..3dd56fb46 100644
--- a/vm/native/dalvik_system_Zygote.cpp
+++ b/vm/native/dalvik_system_Zygote.cpp
@@ -753,27 +753,12 @@ static pid_t forkAndSpecializeCommon(const u4* args, bool isSystemServer, bool l
* int[] gids, int debugFlags, int[][] rlimits, int mountExternal,
* String seInfo, String niceName, int[] fdsToClose);
*/
-static void Dalvik_dalvik_system_Zygote_forkAndSpecialize_new(const u4* args,
- JValue* pResult)
-{
- pid_t pid;
-
- pid = forkAndSpecializeCommon(args, false, false);
-
- RETURN_INT(pid);
-}
-
-/*
- * native public static int nativeForkAndSpecialize(int uid, int gid,
- * int[] gids, int debugFlags, int[][] rlimits, int mountExternal,
- * String seInfo, String niceName);
- */
static void Dalvik_dalvik_system_Zygote_forkAndSpecialize(const u4* args,
JValue* pResult)
{
pid_t pid;
- pid = forkAndSpecializeCommon(args, false, true);
+ pid = forkAndSpecializeCommon(args, false, false);
RETURN_INT(pid);
}
@@ -811,8 +796,6 @@ const DalvikNativeMethod dvm_dalvik_system_Zygote[] = {
{ "nativeFork", "()I",
Dalvik_dalvik_system_Zygote_fork },
{ "nativeForkAndSpecialize", "(II[II[[IILjava/lang/String;Ljava/lang/String;[I)I",
- Dalvik_dalvik_system_Zygote_forkAndSpecialize_new },
- { "nativeForkAndSpecialize", "(II[II[[IILjava/lang/String;Ljava/lang/String;)I",
Dalvik_dalvik_system_Zygote_forkAndSpecialize },
{ "nativeForkSystemServer", "(II[II[[IJJ)I",
Dalvik_dalvik_system_Zygote_forkSystemServer },