hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.hpp
// Calls to this constructor must be proceeded by a ResourceMark
// and a HandleMark
JvmtiConstantPoolReconstituter(instanceKlassHandle ikh){
{- -------------------------------------------
(1) フィールドの初期化
(なお, constantPoolOopDesc::hash_entries_to() で Constant Pool のメモリ領域の大きさを計算している)
---------------------------------------- -}
set_error(JVMTI_ERROR_NONE);
_ikh = ikh;
_cpool = constantPoolHandle(Thread::current(), ikh->constants());
_symmap = new SymbolHashMap();
_classmap = new SymbolHashMap();
_cpool_size = _cpool->hash_entries_to(_symmap, _classmap);
if (_cpool_size == 0) {
set_error(JVMTI_ERROR_OUT_OF_MEMORY);
} else if (_cpool_size < 0) {
set_error(JVMTI_ERROR_INTERNAL);
}
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.