aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2005-06-22 23:52:02 +0800
committerglewis <glewis@FreeBSD.org>2005-06-22 23:52:02 +0800
commite88c42f201b1d8f01528201ee8e436d01fc5145a (patch)
treef3301bdd398f1a2120cd436b2afe88cec11f6012 /java
parentb8de45a5dc584919b1e49948cc5b0873b023f768 (diff)
downloadfreebsd-ports-gnome-e88c42f201b1d8f01528201ee8e436d01fc5145a.tar.gz
freebsd-ports-gnome-e88c42f201b1d8f01528201ee8e436d01fc5145a.tar.zst
freebsd-ports-gnome-e88c42f201b1d8f01528201ee8e436d01fc5145a.zip
. Avoid memory corruption on FreeBSD 4.x. This seems to have no affect
under 5.x which was running fine without it. Approved by: phantom
Diffstat (limited to 'java')
-rw-r--r--java/jdk15/files/patch-hotspot-vm-os_bsd.inline.hpp18
-rw-r--r--java/jdk16/files/patch-hotspot-vm-os_bsd.inline.hpp18
2 files changed, 36 insertions, 0 deletions
diff --git a/java/jdk15/files/patch-hotspot-vm-os_bsd.inline.hpp b/java/jdk15/files/patch-hotspot-vm-os_bsd.inline.hpp
new file mode 100644
index 000000000000..df60ff6dad62
--- /dev/null
+++ b/java/jdk15/files/patch-hotspot-vm-os_bsd.inline.hpp
@@ -0,0 +1,18 @@
+$FreeBSD$
+
+--- ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp 20 Dec 2004 10:06:24 -0000 1.2
++++ ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp 14 May 2005 14:58:18 -0000 1.3
+@@ -29,10 +29,9 @@
+
+ inline bool os::allocate_stack_guard_pages() {
+ assert(uses_stack_guard_pages(), "sanity check");
+-// XXXBSD: ??
+-// return thr_main();
+-// return pthread_main_np();
+- return true;
++ // Since FreeBSD 4 uses malloc() for allocating the thread stack
++ // there is no need to do anything extra to allocate the guard pages
++ return false;
+ }
+
+
diff --git a/java/jdk16/files/patch-hotspot-vm-os_bsd.inline.hpp b/java/jdk16/files/patch-hotspot-vm-os_bsd.inline.hpp
new file mode 100644
index 000000000000..df60ff6dad62
--- /dev/null
+++ b/java/jdk16/files/patch-hotspot-vm-os_bsd.inline.hpp
@@ -0,0 +1,18 @@
+$FreeBSD$
+
+--- ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp 20 Dec 2004 10:06:24 -0000 1.2
++++ ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp 14 May 2005 14:58:18 -0000 1.3
+@@ -29,10 +29,9 @@
+
+ inline bool os::allocate_stack_guard_pages() {
+ assert(uses_stack_guard_pages(), "sanity check");
+-// XXXBSD: ??
+-// return thr_main();
+-// return pthread_main_np();
+- return true;
++ // Since FreeBSD 4 uses malloc() for allocating the thread stack
++ // there is no need to do anything extra to allocate the guard pages
++ return false;
+ }
+
+