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 |