Merge
authorcoleenp
Thu, 13 Nov 2014 00:40:07 +0000
changeset 27655 8b23ee35ec75
parent 27654 4e508c2376f7 (current diff)
parent 27650 199cbba2f8f9 (diff)
child 27656 edf22ab2020b
Merge
--- a/hotspot/src/os_cpu/windows_x86/vm/os_windows_x86.cpp	Thu Nov 13 01:57:09 2014 +0300
+++ b/hotspot/src/os_cpu/windows_x86/vm/os_windows_x86.cpp	Thu Nov 13 00:40:07 2014 +0000
@@ -635,7 +635,11 @@
 #ifndef PRODUCT
 void os::verify_stack_alignment() {
 #ifdef AMD64
-  assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
+  // 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");
+  }
 #endif
 }
 #endif