Top


定義場所(file name)

hotspot/src/share/vm/prims/jniCheck.cpp

説明(description)

// Returns the function structure

名前(function name)

struct JNINativeInterface_* jni_functions_check() {

本体部(body)

  {- -------------------------------------------
  (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.