hotspot/src/share/vm/prims/jni.cpp
// Must be JNI_ENTRY (with HandleMark)
JNI_ENTRY(void, jni_DeleteWeakGlobalRef(JNIEnv *env, jweak ref))
{- -------------------------------------------
(1) (デバッグ用の処理)
(See: JNIWrapper)
---------------------------------------- -}
JNIWrapper("jni_DeleteWeakGlobalRef");
{- -------------------------------------------
(1) (DTrace のフック点)
---------------------------------------- -}
DTRACE_PROBE2(hotspot_jni, DeleteWeakGlobalRef__entry, env, ref);
{- -------------------------------------------
(1) JNIHandles::destroy_weak_global() で
JNIHandles::_weak_global_handles 内の該当する箇所に JNIHandles::_deleted_handle の値を書き込む.
---------------------------------------- -}
JNIHandles::destroy_weak_global(ref);
{- -------------------------------------------
(1) (DTrace のフック点)
---------------------------------------- -}
DTRACE_PROBE(hotspot_jni, DeleteWeakGlobalRef__return);
JNI_END
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.