hotspot/src/share/vm/prims/jni.cpp
JNI_ENTRY(void, jni_FatalError(JNIEnv *env, const char *msg))
{- -------------------------------------------
(1) (デバッグ用の処理)
(See: JNIWrapper)
---------------------------------------- -}
JNIWrapper("FatalError");
{- -------------------------------------------
(1) (DTrace のフック点)
---------------------------------------- -}
DTRACE_PROBE2(hotspot_jni, FatalError__entry, env, msg);
{- -------------------------------------------
(1) (トレース出力)
---------------------------------------- -}
tty->print_cr("FATAL ERROR in native method: %s", msg);
thread->print_stack();
{- -------------------------------------------
(1) os::abort() を呼んで, HotSpot を強制終了させる.
---------------------------------------- -}
os::abort(); // Dump core and abort
JNI_END
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.