hotspot/src/share/vm/oops/typeArrayKlass.cpp
oop typeArrayKlass::multi_allocate(int rank, jint* last_size, TRAPS) {
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
// For typeArrays this is only called for the last dimension
assert(rank == 1, "just checking");
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
int length = *last_size;
{- -------------------------------------------
(1) objArrayKlass::allocate() を呼んで, メモリを確保する
---------------------------------------- -}
return allocate(length, THREAD);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.