comparison src/os_cpu/windows_x86/vm/os_windows_x86.cpp @ 20648:10842d23f20a

8054008: Using -XX:-LazyBootClassLoader crashes with ACCESS_VIOLATION on Win 64bit. Summary: Only enable the assert for current_stack_pointer after stub routines become available. Reviewed-by: dholmes, roland, lfoltan
author jiangli
date Wed, 12 Nov 2014 13:12:35 -0500
parents 55fb97c4c58d
children 7848fc12602b
comparison
equal deleted inserted replaced
20645:2f445c5048df 20648: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