hotspot/src/share/vm/code/nmethod.cpp
jmethodID nmethod::get_and_cache_jmethod_id() {
{- -------------------------------------------
(1) 処理対象の jmethod_id を _jmethod_id フィールドに記録しておく.
(unload する場合は, これ以降はアクセスできなくなってしまうので)
---------------------------------------- -}
if (_jmethod_id == NULL) {
// Cache the jmethod_id since it can no longer be looked up once the
// method itself has been marked for unloading.
_jmethod_id = method()->jmethod_id();
}
return _jmethod_id;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.