Merge "Add the "debug.jni.logging" property so third-party developers can debug their JNI problems."
This commit is contained in:
committed by
Android (Google) Code Review
commit
ed61ee1fae
@@ -522,6 +522,9 @@ public class Process {
|
||||
argsForZygote.add("--runtime-init");
|
||||
argsForZygote.add("--setuid=" + uid);
|
||||
argsForZygote.add("--setgid=" + gid);
|
||||
if ((debugFlags & Zygote.DEBUG_ENABLE_JNI_LOGGING) != 0) {
|
||||
argsForZygote.add("--enable-jni-logging");
|
||||
}
|
||||
if ((debugFlags & Zygote.DEBUG_ENABLE_SAFEMODE) != 0) {
|
||||
argsForZygote.add("--enable-safemode");
|
||||
}
|
||||
|
||||
@@ -328,8 +328,8 @@ class ZygoteConnection {
|
||||
boolean peerWait;
|
||||
|
||||
/**
|
||||
* From --enable-debugger, --enable-checkjni, --enable-assert, and
|
||||
* --enable-safemode
|
||||
* From --enable-debugger, --enable-checkjni, --enable-assert,
|
||||
* --enable-safemode, and --enable-jni-logging.
|
||||
*/
|
||||
int debugFlags;
|
||||
|
||||
@@ -408,6 +408,8 @@ class ZygoteConnection {
|
||||
debugFlags |= Zygote.DEBUG_ENABLE_SAFEMODE;
|
||||
} else if (arg.equals("--enable-checkjni")) {
|
||||
debugFlags |= Zygote.DEBUG_ENABLE_CHECKJNI;
|
||||
} else if (arg.equals("--enable-jni-logging")) {
|
||||
debugFlags |= Zygote.DEBUG_ENABLE_JNI_LOGGING;
|
||||
} else if (arg.equals("--enable-assert")) {
|
||||
debugFlags |= Zygote.DEBUG_ENABLE_ASSERT;
|
||||
} else if (arg.equals("--peer-wait")) {
|
||||
|
||||
Reference in New Issue
Block a user