提交 29653db4 编写于 作者: J jiangli

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
上级 3f0b83b1
...@@ -635,7 +635,11 @@ void os::setup_fpu() { ...@@ -635,7 +635,11 @@ void os::setup_fpu() {
#ifndef PRODUCT #ifndef PRODUCT
void os::verify_stack_alignment() { void os::verify_stack_alignment() {
#ifdef AMD64 #ifdef AMD64
// The current_stack_pointer() calls generated get_previous_sp stub routine.
// Only enable the assert after the routine becomes available.
if (StubRoutines::code1() != NULL) {
assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment"); assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
}
#endif #endif
} }
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册