From shade at redhat.com Mon Jan 4 08:35:22 2021 From: shade at redhat.com (Aleksey Shipilev) Date: Mon, 4 Jan 2021 09:35:22 +0100 Subject: [patch] link libjvm with -latomic In-Reply-To: <845e9d8c-d25c-b1d2-df62-e5130481d297@oracle.com> References: <90671a28-0464-37e7-fc3d-1372a1bf8a77@ubuntu.com> <845e9d8c-d25c-b1d2-df62-e5130481d297@oracle.com> Message-ID: Hi, Thanks for the testing and the report, Matthias! On 12/11/20 11:29 AM, Magnus Ihse Bursie wrote: > If we need -latomic on certain platforms we should add it on those > platforms, but I would prefer not to add it unconditionally. But then > again, if you want to add it for a bunch of system which are only > supported on zero, I will not argue hard against it. This whole shebang is Zero-specific problem, so I see no reason to link libatomic unconditionally. AFAICS, Matthias' patch adds libatomic to platforms that are nominally supported by Server (i.e. ARM). It used to handle only MIPS that is only supported by Zero. So the patch would be a bit reworked to accept only Zero. I did it here: https://bugs.openjdk.java.net/browse/JDK-8259043 https://github.com/openjdk/jdk16/pull/76 Matthias, please give it a spin, if you can. -- Thanks, -Aleksey