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