hotspot/src/share/vm/prims/jvmtiExport.cpp
changeset 10969 3ecf25293e5a
parent 9405 d2e9ee78c3c1
child 11399 5dd5c4dd4b7d
equal deleted inserted replaced
10968:6f5d19d76c93 10969:3ecf25293e5a
   371 
   371 
   372   if (JvmtiEnv::get_phase() == JVMTI_PHASE_LIVE) {
   372   if (JvmtiEnv::get_phase() == JVMTI_PHASE_LIVE) {
   373     JavaThread* current_thread = (JavaThread*) ThreadLocalStorage::thread();
   373     JavaThread* current_thread = (JavaThread*) ThreadLocalStorage::thread();
   374     // transition code: native to VM
   374     // transition code: native to VM
   375     ThreadInVMfromNative __tiv(current_thread);
   375     ThreadInVMfromNative __tiv(current_thread);
   376     __ENTRY(jvmtiEnv*, JvmtiExport::get_jvmti_interface, current_thread)
   376     VM_ENTRY_BASE(jvmtiEnv*, JvmtiExport::get_jvmti_interface, current_thread)
   377     debug_only(VMNativeEntryWrapper __vew;)
   377     debug_only(VMNativeEntryWrapper __vew;)
   378 
   378 
   379     JvmtiEnv *jvmti_env = JvmtiEnv::create_a_jvmti(version);
   379     JvmtiEnv *jvmti_env = JvmtiEnv::create_a_jvmti(version);
   380     *penv = jvmti_env->jvmti_external();  // actual type is jvmtiEnv* -- not to be confused with JvmtiEnv*
   380     *penv = jvmti_env->jvmti_external();  // actual type is jvmtiEnv* -- not to be confused with JvmtiEnv*
   381     return JNI_OK;
   381     return JNI_OK;