Top


定義場所(file name)

hotspot/src/share/vm/prims/jvmtiEventController.cpp

名前(function name)

void
JvmtiEventControllerPrivate::event_init() {

本体部(body)

  {- -------------------------------------------
  (1) (assert)
      ---------------------------------------- -}

      assert(JvmtiThreadState_lock->is_locked(), "sanity check");

  {- -------------------------------------------
  (1) 既に初期化済みであれば, することはないので, ここでリターン.
      ---------------------------------------- -}

      if (_initialized) {
        return;
      }

  {- -------------------------------------------
  (1) (トレース出力)
      ---------------------------------------- -}

      EC_TRACE(("JVMTI [-] # VM live"));

  {- -------------------------------------------
  (1) (デバッグ用の処理) (#ifdef ASSERT 時にのみ実行)
      ---------------------------------------- -}

    #ifdef ASSERT
      // check that our idea and the spec's idea of threaded events match
      for (int ei = JVMTI_MIN_EVENT_TYPE_VAL; ei <= JVMTI_MAX_EVENT_TYPE_VAL; ++ei) {
        jlong bit = JvmtiEventEnabled::bit_for((jvmtiEvent)ei);
        assert(((THREAD_FILTERED_EVENT_BITS & bit) != 0) == JvmtiUtil::event_threaded(ei),
               "thread filtered event list does not match");
      }
    #endif

  {- -------------------------------------------
  (1) 初期化済みである印を付ける.
      ---------------------------------------- -}

      _initialized = true;
    }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.