jdk/src/share/native/sun/management/HotspotThread.c
JNIEXPORT jint JNICALL
Java_sun_management_HotspotThread_getInternalThreadCount
(JNIEnv *env, jobject dummy)
{
{- -------------------------------------------
(1) JMM_VM_THREAD_COUNT を引数として, jmm_GetLongAttribute() を呼び出すだけ.
---------------------------------------- -}
jlong count = jmm_interface->GetLongAttribute(env, NULL,
JMM_VM_THREAD_COUNT);
return (jint) count;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.