hotspot/src/share/vm/oops/instanceKlass.cpp
// Now relocate and link method entry points after class is rewritten.
// This is outside is_rewritten flag. In case of an exception, it can be
// executed more than once.
void instanceKlass::relocate_and_link_methods(TRAPS) {
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
assert(is_loaded(), "must be loaded");
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
instanceKlassHandle this_oop(THREAD, this->as_klassOop());
{- -------------------------------------------
(1) Rewriter::relocate_and_link() を呼んで, バイトコード中の再配置(?)を行う.
---------------------------------------- -}
Rewriter::relocate_and_link(this_oop, CHECK);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.