Top


定義場所(file name)

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

名前(function name)

jvmtiError
JvmtiEnvBase::get_frame_count(JvmtiThreadState *state, jint *count_ptr) {

本体部(body)

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

      assert((state != NULL),
             "JavaThread should create JvmtiThreadState before calling this method");

  {- -------------------------------------------
  (1) JvmtiThreadState::count_frames() で
      対象スレッドのスタックフレーム数を数え, 
      count_ptr 引数で指定された箇所にセットする.
      ---------------------------------------- -}

      *count_ptr = state->count_frames();

  {- -------------------------------------------
  (1) リターン
      ---------------------------------------- -}

      return JVMTI_ERROR_NONE;
    }

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