comparison src/os_cpu/linux_x86/vm/os_linux_x86.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 1d1603768966
children 957c266d8bc5 716e6ef4482a
comparison
equal deleted inserted replaced
5902:c7987cbaf2ca 5903:da4be62fb889
860 address fpu_cntrl = StubRoutines::addr_fpu_cntrl_wrd_std(); 860 address fpu_cntrl = StubRoutines::addr_fpu_cntrl_wrd_std();
861 __asm__ volatile ( "fldcw (%0)" : 861 __asm__ volatile ( "fldcw (%0)" :
862 : "r" (fpu_cntrl) : "memory"); 862 : "r" (fpu_cntrl) : "memory");
863 #endif // !AMD64 863 #endif // !AMD64
864 } 864 }
865
866 #ifndef PRODUCT
867 void os::verify_stack_alignment() {
868 #ifdef AMD64
869 assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
870 #endif
871 }
872 #endif