Top


定義場所(file name)

hotspot/src/share/vm/runtime/biasedLocking.cpp

名前(function name)

  void doit() {

本体部(body)

  {- -------------------------------------------
  (1) 既にロード済みのクラス全てに対して enable_biased_locking() を呼び出し,
      prototype header を biased locking pattern に置き換える.
      ---------------------------------------- -}

        // Iterate the system dictionary enabling biased locking for all
        // currently loaded classes
        SystemDictionary::classes_do(enable_biased_locking);

  {- -------------------------------------------
  (1) これ以降は BiasedLocking::enabled() が true を返すよう, _biased_locking_enabled の値を変更
      ---------------------------------------- -}

        // Indicate that future instances should enable it as well
        _biased_locking_enabled = true;

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

        if (TraceBiasedLocking) {
          tty->print_cr("Biased locking enabled");
        }
      }

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