Top


定義場所(file name)

hotspot/src/share/vm/services/threadService.cpp

名前(function name)

void ThreadService::current_thread_exiting(JavaThread* jt) {

本体部(body)

  {- -------------------------------------------
  (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.