Top


定義場所(file name)

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

名前(function name)

static void validate_thread_id_array(typeArrayHandle ids_ah, TRAPS) {

本体部(body)

  {- -------------------------------------------
  (1) もし引数で渡された long 配列に 0 以下の値が混じっていたら IllegalArgumentException.
      ---------------------------------------- -}

      int num_threads = ids_ah->length();

      // Validate input thread IDs
      int i = 0;
      for (i = 0; i < num_threads; i++) {
        jlong tid = ids_ah->long_at(i);
        if (tid <= 0) {
          // throw exception if invalid thread id.
          THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
                    "Invalid thread ID entry");
        }
      }
    }

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