Top


定義場所(file name)

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

説明(description)

// Threads_lock NOT held, java_thread not protected by lock
// java_thread - pre-checked

名前(function name)

jvmtiError
JvmtiEnv::StopThread(JavaThread* java_thread, jobject exception) {

本体部(body)

  {- -------------------------------------------
  (1) もし exception 引数の値が NULL であれば, ここでリターン(JVMTI_ERROR_NULL_POINTER)
      ---------------------------------------- -}

      oop e = JNIHandles::resolve_external_guard(exception);
      NULL_CHECK(e, JVMTI_ERROR_NULL_POINTER);

  {- -------------------------------------------
  (1) Thread::send_async_exception() を呼んで, 対象のスレッド内に
      exception 引数で指定された例外を発生させる.
      ---------------------------------------- -}

      JavaThread::send_async_exception(java_thread->threadObj(), e);

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

      return JVMTI_ERROR_NONE;

    } /* end StopThread */

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