Top


定義場所(file name)

hotspot/src/share/vm/oops/methodOop.cpp

説明(description)

// Revert to using the interpreter and clear out the nmethod

名前(function name)

void methodOopDesc::clear_code() {

本体部(body)

  {- -------------------------------------------
  (1) JIT compiled code を破棄し, 今後はインタープリタ実行されるように
      _from_compiled_entry や _from_interpreted_entry を書き換える.
      ---------------------------------------- -}

      // this may be NULL if c2i adapters have not been made yet
      // Only should happen at allocate time.
      if (_adapter == NULL) {
        _from_compiled_entry    = NULL;
      } else {
        _from_compiled_entry    = _adapter->get_c2i_entry();
      }
      OrderAccess::storestore();
      _from_interpreted_entry = _i2i_entry;
      OrderAccess::storestore();
      _code = NULL;
    }

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