equal
deleted
inserted
replaced
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; |