hotspot/src/os/windows/vm/os_windows.cpp
// Returns an estimate of the current stack pointer. Result must be guaranteed // to point into the calling threads stack, and be no lower than the current // stack pointer.
address os::current_stack_pointer() {
{- -------------------------------------------
(1) 適当に局所変数を宣言し, そのアドレスをリターンするだけ.
---------------------------------------- -}
int dummy;
address sp = (address)&dummy;
return sp;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.