src/os/solaris/vm/os_solaris.cpp
Print this page
rev 3149 : 7147740: add assertions to check stack alignment on VM entry from generated code (x64)
Summary: check stack alignment on VM entry on x64.
Reviewed-by:
*** 1011,1029 ****
extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
- // 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() {
- volatile int dummy;
- address sp = (address)&dummy + 8; // %%%% need to confirm if this is right
- return sp;
- }
-
static thread_t main_thread;
// Thread start routine for all new Java threads
extern "C" void* java_start(void* thread_addr) {
// Try to randomize the cache line index of hot stack frames.
--- 1011,1020 ----