comparison src/os/windows/vm/os_windows.cpp @ 5903:da4be62fb889

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: kvn, never
author roland
date Mon, 27 Feb 2012 09:17:44 +0100
parents 379b22e03c32
children ec15e8f6e4f1
comparison
equal deleted inserted replaced
5902:c7987cbaf2ca 5903:da4be62fb889
320 } 320 }
321 321
322 // Invoked from the BREAKPOINT Macro 322 // Invoked from the BREAKPOINT Macro
323 extern "C" void breakpoint() { 323 extern "C" void breakpoint() {
324 os::breakpoint(); 324 os::breakpoint();
325 }
326
327 // Returns an estimate of the current stack pointer. Result must be guaranteed
328 // to point into the calling threads stack, and be no lower than the current
329 // stack pointer.
330
331 address os::current_stack_pointer() {
332 int dummy;
333 address sp = (address)&dummy;
334 return sp;
335 } 325 }
336 326
337 // os::current_stack_base() 327 // os::current_stack_base()
338 // 328 //
339 // Returns the base of the stack, which is the stack's 329 // Returns the base of the stack, which is the stack's