Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 647954 | Differences between
and this patch

Collapse All | Expand All

(-)a/openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp (-5 / +4 lines)
Lines 876-888 Link Here
876
#endif // !AMD64
876
#endif // !AMD64
877
}
877
}
878
878
879
#ifndef PRODUCT
880
void os::verify_stack_alignment() {
879
void os::verify_stack_alignment() {
881
#ifdef AMD64
880
  bool align = ((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0;
882
  assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
881
  assert(align, "incorrect stack alignment");
883
#endif
882
  if (!align)
883
    *(volatile int *)(0xbad574cc);
884
}
884
}
885
#endif
886
885
887
886
888
/*
887
/*
(-)a/openjdk/hotspot/src/share/vm/runtime/os.hpp (-1 / +1 lines)
Lines 496-502 Link Here
496
  static address current_stack_base();
496
  static address current_stack_base();
497
  static size_t current_stack_size();
497
  static size_t current_stack_size();
498
498
499
  static void verify_stack_alignment() PRODUCT_RETURN;
499
  static void verify_stack_alignment();
500
500
501
  static int message_box(const char* title, const char* message);
501
  static int message_box(const char* title, const char* message);
502
  static char* do_you_want_to_debug(const char* message);
502
  static char* do_you_want_to_debug(const char* message);

Return to bug 647954