hotspot/src/share/vm/prims/jniCheck.cpp
// Returns the function structure
struct JNINativeInterface_* jni_functions_check() {
{- -------------------------------------------
(1) unchecked_jni_NativeInterface を初期化.
---------------------------------------- -}
unchecked_jni_NativeInterface = jni_functions_nocheck();
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
// make sure the last pointer in the checked table is not null, indicating
// an addition to the JNINativeInterface_ structure without initializing
// it in the checked table.
debug_only(int *lastPtr = (int *)((char *)&checked_jni_NativeInterface + \
sizeof(*unchecked_jni_NativeInterface) - sizeof(char *));)
assert(*lastPtr != 0,
"Mismatched JNINativeInterface tables, check for new entries");
{- -------------------------------------------
(1) (トレース出力)
---------------------------------------- -}
// with -verbose:jni this message will print
if (PrintJNIResolving) {
tty->print_cr("Checked JNI functions are being used to " \
"validate JNI usage");
}
{- -------------------------------------------
(1) checked_jni_NativeInterface をリターン.
---------------------------------------- -}
return &checked_jni_NativeInterface;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.