aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2002-08-06 02:16:05 +0800
committerglewis <glewis@FreeBSD.org>2002-08-06 02:16:05 +0800
commitca7da0820f9fee7240323e3ae0da58d65f3c0832 (patch)
tree8d5823514a74f4fd394b9493cc1746947db3133a /java
parentc77867485021833168e481b8e8a9e8a53273225f (diff)
downloadfreebsd-ports-gnome-ca7da0820f9fee7240323e3ae0da58d65f3c0832.tar.gz
freebsd-ports-gnome-ca7da0820f9fee7240323e3ae0da58d65f3c0832.tar.zst
freebsd-ports-gnome-ca7da0820f9fee7240323e3ae0da58d65f3c0832.zip
Add in a patch from the porting repository that allows people to build
HotSpot if they wish (by hand, not via the port yet).
Diffstat (limited to 'java')
-rw-r--r--java/jdk13/files/patch-os_linux_i486.cpp62
-rw-r--r--java/jdk14/files/patch-os_linux_i486.cpp62
-rw-r--r--java/jdk15/files/patch-os_linux_i486.cpp62
-rw-r--r--java/jdk16/files/patch-os_linux_i486.cpp62
4 files changed, 248 insertions, 0 deletions
diff --git a/java/jdk13/files/patch-os_linux_i486.cpp b/java/jdk13/files/patch-os_linux_i486.cpp
new file mode 100644
index 000000000000..51ae4f41e656
--- /dev/null
+++ b/java/jdk13/files/patch-os_linux_i486.cpp
@@ -0,0 +1,62 @@
+$FreeBSD$
+
+--- ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 11 Apr 2002 10:30:45 -0000 1.3
++++ ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 28 Jul 2002 23:18:37 -0000 1.4
+@@ -15,7 +15,6 @@
+ # include "incls/_os_linux_i486.cpp.incl"
+ # include "incls/_os_pd.hpp.incl"
+
+-extern "C" {
+ // put OS-includes here
+ # include <sys/types.h>
+ # include <sys/mman.h>
+@@ -34,14 +33,13 @@
+ # include <pwd.h>
+ # include <poll.h>
+
+-
+ #include <setjmp.h>
+
+-#define HACK
+-#include </usr/src/lib/libc_r/uthread/pthread_private.h>
+-//--billh
++#undef pthread_attr_default
++#undef pthread_mutexattr_default
++#undef pthread_condattr_default
+
+-}
++#include <uthread/pthread_private.h>
+
+ #define MAX_PATH (2 * K)
+ #define INTERRUPT_SIGNAL SIGUSR1
+@@ -188,10 +186,11 @@
+ // fastlane always uses callback for safepoints
+ assert(!GetThreadState || Arguments::has_profile(), "just checking");
+
+-// The register UESP doensn't exist in the ucontext_t under FreeBSD. I
++// The register UESP doesn't exist in the ucontext_t under FreeBSD. I
+ // suspect that it's a kind of pseudo-register that's created by the glibc
+ // runtime in Linux and other OSes to differentiate the stack pointers
+-// during an exception verses normal execution, much like the old 68k CPU.
++// during exception time verses normal execution. It's much like the old 68k
++// CPU's stack handling.
+ //
+ // _sp = (jint*)uc->uc_mcontext.gregs[UESP];
+ //
+@@ -790,7 +789,6 @@
+ // JVMPI code
+ bool os::thread_is_running(JavaThread* tp) {
+ #if 0
+-#endif
+ pthread_t tid = tp->osthread()->thread_id();
+ ucontext_t *uc = (ucontext_t *) &tid->ctx.uc;
+ sumObject_t *so = (sumObject_t*) uc;
+@@ -824,6 +822,8 @@
+ tp->set_last_sum(sum);
+ return true;
+ }
++#endif
++ return true;
+ }
+
+
diff --git a/java/jdk14/files/patch-os_linux_i486.cpp b/java/jdk14/files/patch-os_linux_i486.cpp
new file mode 100644
index 000000000000..51ae4f41e656
--- /dev/null
+++ b/java/jdk14/files/patch-os_linux_i486.cpp
@@ -0,0 +1,62 @@
+$FreeBSD$
+
+--- ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 11 Apr 2002 10:30:45 -0000 1.3
++++ ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 28 Jul 2002 23:18:37 -0000 1.4
+@@ -15,7 +15,6 @@
+ # include "incls/_os_linux_i486.cpp.incl"
+ # include "incls/_os_pd.hpp.incl"
+
+-extern "C" {
+ // put OS-includes here
+ # include <sys/types.h>
+ # include <sys/mman.h>
+@@ -34,14 +33,13 @@
+ # include <pwd.h>
+ # include <poll.h>
+
+-
+ #include <setjmp.h>
+
+-#define HACK
+-#include </usr/src/lib/libc_r/uthread/pthread_private.h>
+-//--billh
++#undef pthread_attr_default
++#undef pthread_mutexattr_default
++#undef pthread_condattr_default
+
+-}
++#include <uthread/pthread_private.h>
+
+ #define MAX_PATH (2 * K)
+ #define INTERRUPT_SIGNAL SIGUSR1
+@@ -188,10 +186,11 @@
+ // fastlane always uses callback for safepoints
+ assert(!GetThreadState || Arguments::has_profile(), "just checking");
+
+-// The register UESP doensn't exist in the ucontext_t under FreeBSD. I
++// The register UESP doesn't exist in the ucontext_t under FreeBSD. I
+ // suspect that it's a kind of pseudo-register that's created by the glibc
+ // runtime in Linux and other OSes to differentiate the stack pointers
+-// during an exception verses normal execution, much like the old 68k CPU.
++// during exception time verses normal execution. It's much like the old 68k
++// CPU's stack handling.
+ //
+ // _sp = (jint*)uc->uc_mcontext.gregs[UESP];
+ //
+@@ -790,7 +789,6 @@
+ // JVMPI code
+ bool os::thread_is_running(JavaThread* tp) {
+ #if 0
+-#endif
+ pthread_t tid = tp->osthread()->thread_id();
+ ucontext_t *uc = (ucontext_t *) &tid->ctx.uc;
+ sumObject_t *so = (sumObject_t*) uc;
+@@ -824,6 +822,8 @@
+ tp->set_last_sum(sum);
+ return true;
+ }
++#endif
++ return true;
+ }
+
+
diff --git a/java/jdk15/files/patch-os_linux_i486.cpp b/java/jdk15/files/patch-os_linux_i486.cpp
new file mode 100644
index 000000000000..51ae4f41e656
--- /dev/null
+++ b/java/jdk15/files/patch-os_linux_i486.cpp
@@ -0,0 +1,62 @@
+$FreeBSD$
+
+--- ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 11 Apr 2002 10:30:45 -0000 1.3
++++ ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 28 Jul 2002 23:18:37 -0000 1.4
+@@ -15,7 +15,6 @@
+ # include "incls/_os_linux_i486.cpp.incl"
+ # include "incls/_os_pd.hpp.incl"
+
+-extern "C" {
+ // put OS-includes here
+ # include <sys/types.h>
+ # include <sys/mman.h>
+@@ -34,14 +33,13 @@
+ # include <pwd.h>
+ # include <poll.h>
+
+-
+ #include <setjmp.h>
+
+-#define HACK
+-#include </usr/src/lib/libc_r/uthread/pthread_private.h>
+-//--billh
++#undef pthread_attr_default
++#undef pthread_mutexattr_default
++#undef pthread_condattr_default
+
+-}
++#include <uthread/pthread_private.h>
+
+ #define MAX_PATH (2 * K)
+ #define INTERRUPT_SIGNAL SIGUSR1
+@@ -188,10 +186,11 @@
+ // fastlane always uses callback for safepoints
+ assert(!GetThreadState || Arguments::has_profile(), "just checking");
+
+-// The register UESP doensn't exist in the ucontext_t under FreeBSD. I
++// The register UESP doesn't exist in the ucontext_t under FreeBSD. I
+ // suspect that it's a kind of pseudo-register that's created by the glibc
+ // runtime in Linux and other OSes to differentiate the stack pointers
+-// during an exception verses normal execution, much like the old 68k CPU.
++// during exception time verses normal execution. It's much like the old 68k
++// CPU's stack handling.
+ //
+ // _sp = (jint*)uc->uc_mcontext.gregs[UESP];
+ //
+@@ -790,7 +789,6 @@
+ // JVMPI code
+ bool os::thread_is_running(JavaThread* tp) {
+ #if 0
+-#endif
+ pthread_t tid = tp->osthread()->thread_id();
+ ucontext_t *uc = (ucontext_t *) &tid->ctx.uc;
+ sumObject_t *so = (sumObject_t*) uc;
+@@ -824,6 +822,8 @@
+ tp->set_last_sum(sum);
+ return true;
+ }
++#endif
++ return true;
+ }
+
+
diff --git a/java/jdk16/files/patch-os_linux_i486.cpp b/java/jdk16/files/patch-os_linux_i486.cpp
new file mode 100644
index 000000000000..51ae4f41e656
--- /dev/null
+++ b/java/jdk16/files/patch-os_linux_i486.cpp
@@ -0,0 +1,62 @@
+$FreeBSD$
+
+--- ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 11 Apr 2002 10:30:45 -0000 1.3
++++ ../../hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp 28 Jul 2002 23:18:37 -0000 1.4
+@@ -15,7 +15,6 @@
+ # include "incls/_os_linux_i486.cpp.incl"
+ # include "incls/_os_pd.hpp.incl"
+
+-extern "C" {
+ // put OS-includes here
+ # include <sys/types.h>
+ # include <sys/mman.h>
+@@ -34,14 +33,13 @@
+ # include <pwd.h>
+ # include <poll.h>
+
+-
+ #include <setjmp.h>
+
+-#define HACK
+-#include </usr/src/lib/libc_r/uthread/pthread_private.h>
+-//--billh
++#undef pthread_attr_default
++#undef pthread_mutexattr_default
++#undef pthread_condattr_default
+
+-}
++#include <uthread/pthread_private.h>
+
+ #define MAX_PATH (2 * K)
+ #define INTERRUPT_SIGNAL SIGUSR1
+@@ -188,10 +186,11 @@
+ // fastlane always uses callback for safepoints
+ assert(!GetThreadState || Arguments::has_profile(), "just checking");
+
+-// The register UESP doensn't exist in the ucontext_t under FreeBSD. I
++// The register UESP doesn't exist in the ucontext_t under FreeBSD. I
+ // suspect that it's a kind of pseudo-register that's created by the glibc
+ // runtime in Linux and other OSes to differentiate the stack pointers
+-// during an exception verses normal execution, much like the old 68k CPU.
++// during exception time verses normal execution. It's much like the old 68k
++// CPU's stack handling.
+ //
+ // _sp = (jint*)uc->uc_mcontext.gregs[UESP];
+ //
+@@ -790,7 +789,6 @@
+ // JVMPI code
+ bool os::thread_is_running(JavaThread* tp) {
+ #if 0
+-#endif
+ pthread_t tid = tp->osthread()->thread_id();
+ ucontext_t *uc = (ucontext_t *) &tid->ctx.uc;
+ sumObject_t *so = (sumObject_t*) uc;
+@@ -824,6 +822,8 @@
+ tp->set_last_sum(sum);
+ return true;
+ }
++#endif
++ return true;
+ }
+
+