Top


定義場所(file name)

hotspot/src/share/vm/services/lowMemoryDetector.hpp

名前(function name)

  static bool is_enabled(MemoryPool* pool) {

本体部(body)

  {- -------------------------------------------
  (1) 引数で指定された MemoryPool に対して, 
      usage sensor が作成されており, 
      かつ high threshould の値も設定されていれば true をリターンする.
      (そうでなければ false をリターンする)
      ---------------------------------------- -}

        // low memory detection is enabled for collected memory pools
        // iff one of the collected memory pool has a sensor and the
        // threshold set non-zero
        if (pool->usage_sensor() == NULL) {
          return false;
        } else {
          ThresholdSupport* threshold_support = pool->usage_threshold();
          return (threshold_support->is_high_threshold_supported() ?
                   (threshold_support->high_threshold() > 0) : false);
        }
      }

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