hotspot/src/share/vm/memory/oopFactory.cpp
typeArrayOop oopFactory::new_typeArray(BasicType type, int length, TRAPS) {
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
klassOop type_asKlassOop = Universe::typeArrayKlassObj(type);
typeArrayKlass* type_asArrayKlass = typeArrayKlass::cast(type_asKlassOop);
{- -------------------------------------------
(1) typeArrayKlass::allocate() でメモリを確保し, 結果をリターンする
---------------------------------------- -}
typeArrayOop result = type_asArrayKlass->allocate(length, THREAD);
return result;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.