hotspot/src/share/vm/services/threadService.cpp
void ThreadService::current_thread_exiting(JavaThread* jt) {
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
assert(jt == JavaThread::current(), "Called by current thread");
{- -------------------------------------------
(1) (プロファイル情報の記録) (JMM 用)
(See: ThreadService::get_live_thread_count(), ThreadService::get_daemon_thread_count())
---------------------------------------- -}
Atomic::inc((jint*) &_exiting_threads_count);
oop threadObj = jt->threadObj();
if (threadObj != NULL && java_lang_Thread::is_daemon(threadObj)) {
Atomic::inc((jint*) &_exiting_daemon_threads_count);
}
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.