Top


定義場所(file name)

hotspot/src/share/vm/runtime/interfaceSupport.hpp

名前(function name)

#define JNI_ENTRY_NO_PRESERVE(result_type, header)             \

本体部(body)

  {- -------------------------------------------
  (1) (関数定義の関数名および型宣言部が生成される)
      ---------------------------------------- -}

    extern "C" {                                                         \
      result_type JNICALL header {                                \

  {- -------------------------------------------
  (1) (変数宣言など)
      (See: ThreadInVMfromNative)
      ---------------------------------------- -}

        JavaThread* thread=JavaThread::thread_from_jni_environment(env); \
        assert( !VerifyJNIEnvThread || (thread == Thread::current()), "JNIEnv is only valid in same thread"); \
        ThreadInVMfromNative __tiv(thread);                              \
        debug_only(VMNativeEntryWrapper __vew;)                          \

  {- -------------------------------------------
  (1) __ENTRY() マクロのコードが展開される
      ---------------------------------------- -}

        __ENTRY(result_type, header, thread)

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.