src/os_cpu/windows_x86/vm/os_windows_x86.cpp

changeset 7362
10842d23f20a
parent 6198
55fb97c4c58d
child 7535
7ae4e26cb1e0
child 9349
e25662a88116
equal deleted inserted replaced
7359:2f445c5048df 7362:10842d23f20a
633 } 633 }
634 634
635 #ifndef PRODUCT 635 #ifndef PRODUCT
636 void os::verify_stack_alignment() { 636 void os::verify_stack_alignment() {
637 #ifdef AMD64 637 #ifdef AMD64
638 assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment"); 638 // The current_stack_pointer() calls generated get_previous_sp stub routine.
639 // Only enable the assert after the routine becomes available.
640 if (StubRoutines::code1() != NULL) {
641 assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
642 }
639 #endif 643 #endif
640 } 644 }
641 #endif 645 #endif

mercurial