源码位置:art/runtime/jni/jni_internal.cc
GetJniNativeInterface
646 class JNI {
647 public:
648 static jint GetVersion(JNIEnv*) {
649 return JNI_VERSION_1_6;
650 }
...
}
2886 const JNINativeInterface gJniNativeInterface = {
2887 nullptr, // reserved0.
2888 nullptr, // reserved1.
2889 nullptr, // reserved2.
2890 nullptr, // reserved3.
2891 JNI::GetVersion,
...
}
3122 const JNINativeInterface* GetJniNativeInterface() {
3123 return &gJniNativeInterface;
3124 }
GetJniNativeInterface()方法会被art/runtime/jni/jni_env_ext.cc
调用,见:http://xinyiworld.top/wordpress_it/?p=14639
0 条评论