Bug#1068873: openjdk-21: more m68k patches

Thorsten Glaser <[email protected]>
Newsgroups gmane.linux.debian.ports.68k
Message-ID <Pine.BSM.4.64L.2404121625520.20085__44104.2837499239$1712939799$gmane$org@herc.mirbsd.org>
Source: openjdk-21
X-Debbugs-Cc: [email protected], [email protected]

Please add the following patch e.g. to debian/patches/m68k-support.diff
for more making implicit alignment assumptions (here by the futex
syscall) explicit:

--- src/hotspot/os/linux/waitBarrier_linux.hpp~	2024-04-12 18:24:38.584686322 +0200
+++ src/hotspot/os/linux/waitBarrier_linux.hpp	2024-04-12 18:24:46.768716977 +0200
@@ -29,7 +29,7 @@
 #include "utilities/globalDefinitions.hpp"
 
 class LinuxWaitBarrier : public CHeapObj<mtInternal> {
-  volatile int _futex_barrier;
+  volatile int _futex_barrier __attribute__((__aligned__(4)));
 
   NONCOPYABLE(LinuxWaitBarrier);
 

Thanks!

(This is what I found trying to build openjdk-20, but it’ll be
needed in 21 as well. Even getting to this point took 13½ days
already…)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.