hotspot/src/share/vm/services/management.cpp
static jint get_vm_thread_count() {
{- -------------------------------------------
(1) VmThreadCountClosure を使ってスレッド数を数え, その結果をリターンする.
---------------------------------------- -}
VmThreadCountClosure vmtcc;
{
MutexLockerEx ml(Threads_lock);
Threads::threads_do(&vmtcc);
}
return vmtcc.count();
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.