Zygotepublic class Zygote extends Object Provides access to the Dalvik "zygote" feature, which allows a VM instance to
be partially initialized and then fork()'d from the partially initialized
state. |
Fields Summary |
---|
public static final int | DEBUG_ENABLE_DEBUGGERenable debugging over JDWP | public static final int | DEBUG_ENABLE_CHECKJNIenable JNI checks | public static final int | DEBUG_ENABLE_ASSERTenable Java programming language "assert" statements |
Constructors Summary |
---|
private Zygote()
|
Methods Summary |
---|
public static native int | fork()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()
| public static native int | forkAndSpecialize(int uid, int gid, int[] gids, int debugFlags, int[][] rlimits)Forks a new VM instance. The current VM must have been started
with the -Xzygote flag. NOTE: new instance keeps all
root capabilities. The new process is expected to call capset().
| public static int | forkAndSpecialize(int uid, int gid, int[] gids, boolean enableDebugger, int[][] rlimits)Forks a new VM instance.
int debugFlags = enableDebugger ? DEBUG_ENABLE_DEBUGGER : 0;
return forkAndSpecialize(uid, gid, gids, debugFlags, rlimits);
| public static native int | forkSystemServer(int uid, int gid, int[] gids, int debugFlags, int[][] rlimits)Special method to start the system server process. In addition to the
common actions performed in forkAndSpecialize, the pid of the child
process is recorded such that the death of the child process will cause
zygote to exit.
| public static int | forkSystemServer(int uid, int gid, int[] gids, boolean enableDebugger, int[][] rlimits)Special method to start the system server process.
int debugFlags = enableDebugger ? DEBUG_ENABLE_DEBUGGER : 0;
return forkAndSpecialize(uid, gid, gids, debugFlags, rlimits);
|
|