src/os_cpu/linux_x86/vm/os_linux_x86.cpp

changeset 3606
da4be62fb889
parent 2708
1d1603768966
child 4079
716e6ef4482a
     1.1 --- a/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Fri Feb 24 12:33:31 2012 -0800
     1.2 +++ b/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Mon Feb 27 09:17:44 2012 +0100
     1.3 @@ -862,3 +862,11 @@
     1.4                        : "r" (fpu_cntrl) : "memory");
     1.5  #endif // !AMD64
     1.6  }
     1.7 +
     1.8 +#ifndef PRODUCT
     1.9 +void os::verify_stack_alignment() {
    1.10 +#ifdef AMD64
    1.11 +  assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
    1.12 +#endif
    1.13 +}
    1.14 +#endif

mercurial