hotspot/src/share/vm/prims/jni.cpp
JNI_QUICK_ENTRY(void, jni_DeleteLocalRef(JNIEnv *env, jobject obj))
{- -------------------------------------------
(1) (デバッグ用の処理)
(See: JNIWrapper)
---------------------------------------- -}
JNIWrapper("DeleteLocalRef");
{- -------------------------------------------
(1) (DTrace のフック点)
---------------------------------------- -}
DTRACE_PROBE2(hotspot_jni, DeleteLocalRef__entry, env, obj);
{- -------------------------------------------
(1) JNIHandles::destroy_local() で
JNIHandles::_global_handles 内の該当する箇所に JNIHandles::_deleted_handle の値を書き込む.
---------------------------------------- -}
JNIHandles::destroy_local(obj);
{- -------------------------------------------
(1) (DTrace のフック点)
---------------------------------------- -}
DTRACE_PROBE(hotspot_jni, DeleteLocalRef__return);
JNI_END
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.