hotspot/src/share/vm/oops/methodOop.cpp
// Revert to using the interpreter and clear out the nmethod
void methodOopDesc::clear_code() {
{- -------------------------------------------
(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.