Merge "AndroidRuntime: when CheckJNI is enabled log a message"

This commit is contained in:
Treehugger Robot
2021-11-16 18:42:48 +00:00
committed by Gerrit Code Review

View File

@@ -746,8 +746,9 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote, bool p
}
const bool checkJni = GetBoolProperty("dalvik.vm.checkjni", false);
ALOGV("CheckJNI is %s\n", checkJni ? "ON" : "OFF");
if (checkJni) {
ALOGD("CheckJNI is ON");
/* extended JNI checking */
addOption("-Xcheck:jni");