public final class ZygoteHooks extends Object
| Constructor and Description |
|---|
ZygoteHooks() |
| Modifier and Type | Method and Description |
|---|---|
void |
postForkChild(int debugFlags,
String instructionSet)
Called by the zygote in the child process after every fork.
|
void |
postForkCommon()
Called by the zygote in both the parent and child processes after
every fork.
|
void |
preFork()
Called by the zygote prior to every fork.
|
public void preFork()
preFork
is followed by a matching call to postForkChild(int, String) on the child
process and postForkCommon() on both the parent and the child
process. postForkCommon is called after postForkChild in
the child process.public void postForkChild(int debugFlags,
String instructionSet)
debugFlags are applied to the child process. The string
instructionSet determines whether to use a native bridge.public void postForkCommon()
postForkChild.