aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-12-21 17:39:55 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-12-21 17:39:55 +0000
commit8bb268539fa74116e9edd651f84fffbfcf2feaab (patch)
treef4a3786c5bde6a8996a8abe3e089b4a656e9b561
parent4ca11c4efc7e01e8fbf797624c8d54157f1c61a0 (diff)
downloadports-8bb268539fa74116e9edd651f84fffbfcf2feaab.tar.gz
ports-8bb268539fa74116e9edd651f84fffbfcf2feaab.zip
java/openjdk19: fix build on powerpc64*
Remove the dead code that no longer builds and is not present in the Linux code.
-rw-r--r--java/openjdk19/files/patch-src_hotspot_os__cpu_bsd__ppc_os__bsd__ppc.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/java/openjdk19/files/patch-src_hotspot_os__cpu_bsd__ppc_os__bsd__ppc.cpp b/java/openjdk19/files/patch-src_hotspot_os__cpu_bsd__ppc_os__bsd__ppc.cpp
new file mode 100644
index 000000000000..d3b0e0b9821e
--- /dev/null
+++ b/java/openjdk19/files/patch-src_hotspot_os__cpu_bsd__ppc_os__bsd__ppc.cpp
@@ -0,0 +1,19 @@
+--- src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp.orig 2022-12-21 16:54:47 UTC
++++ src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp
+@@ -187,16 +187,6 @@ frame os::current_frame() {
+ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
+ ucontext_t* uc, JavaThread* thread) {
+
+- // Moved SafeFetch32 handling outside thread!=NULL conditional block to make
+- // it work if no associated JavaThread object exists.
+- if (uc) {
+- address const pc = os::Posix::ucontext_get_pc(uc);
+- if (pc && StubRoutines::is_safefetch_fault(pc)) {
+- os::Posix::ucontext_set_pc(uc, StubRoutines::continuation_for_safefetch_fault(pc));
+- return true;
+- }
+- }
+-
+ // decide if this trap can be handled by a stub
+ address stub = NULL;
+ address pc = NULL;