--- old/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 2012-02-22 11:31:57.986046594 +0100 +++ new/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 2012-02-22 11:31:57.803707722 +0100 @@ -862,3 +862,11 @@ : "r" (fpu_cntrl) : "memory"); #endif // !AMD64 } + +#ifndef PRODUCT +void os::verify_stack_alignment() { +#ifdef AMD64 + assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment"); +#endif +} +#endif