diff options
author | tnn <tnn@pkgsrc.org> | 2015-02-22 14:46:40 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-02-22 14:46:40 +0000 |
commit | 4d3ee0fe2ac27749b3ecaf0cf3fc9ad8db395816 (patch) | |
tree | d14484c6e19a4d2130dbd6014e70f1724e952bf6 /lang/openjdk7/patches | |
parent | 57d2b091f1b84c4b353fbe5b987fea0af23a7279 (diff) | |
download | pkgsrc-4d3ee0fe2ac27749b3ecaf0cf3fc9ad8db395816.tar.gz |
SpinPause() needs to return a proper value, or we can apparently crash.
Already fixed in upstream openjdk8, but not in openjdk7.
Diffstat (limited to 'lang/openjdk7/patches')
-rw-r--r-- | lang/openjdk7/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/openjdk7/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp b/lang/openjdk7/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp new file mode 100644 index 00000000000..2a8c99451a0 --- /dev/null +++ b/lang/openjdk7/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp,v 1.1 2015/02/22 14:46:40 tnn Exp $ + +SpinPause() needs to return a proper value, or we can apparently crash. +Already fixed in upstream openjdk8, but not in openjdk7. + +--- hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp.orig 2015-02-22 14:33:30.000000000 +0000 ++++ hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp +@@ -464,6 +464,7 @@ void os::print_register_info(outputStrea + + extern "C" { + int SpinPause() { ++ return 1; + } + + int SafeFetch32(int *adr, int errValue) { |