[8u] RFR: JDK-8271466 Some tests do not support aarch64
Andrew Hughes
gnu.andrew at redhat.com
Thu Jul 29 16:51:37 UTC 2021
On 13:15 Thu 29 Jul , xiangyuan(远翔) wrote:
> Hi,
>
> I found 3 cases failed on aarch64, and cases are detailed here: https://bugs.openjdk.java.net/browse/JDK-8271466
> 1. hotspot/test/runtime/StackGap/testme.sh
> Error Info: gcc: error: unrecognized command line option '-m64'
> When compiling stack-gap, this case passes compiler option '-m64' to gcc, which is unrecoginized by gcc on aarch64.
>
It looks like this issue is unique to 8u and I'm happy for the proposed patch to testme.sh to go into 8u under 8271466.
> 2. jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java
> Error Info: [jdk/test/sun/management/jmxremote/bootstrap/linux-aarch64/launcher] does not exist. Skipping the test
>
> This testcase depends on a pre-built binary launcher, which is placed the directory "jdk/test/sun/management/jmxremote/bootstrap/{OS-arch}/launcher".
> Now there isn't include the file "linux-aarch64/launcher".
>
It looks like the solution here is a rewrite:
https://bugs.openjdk.java.net/browse/JDK-8240604
This would need to be backported to 11u first.
> 3. jdk/test/sun/security/pkcs11/Secmod/TestNssDbSqlite.java
> Error Info: Unsupported OS, skipping: Linux-aarch64-64
>
> File jdk/test/sun/security/pkcs11/PKCS11Test.java defines a hashmap named osMap to help to find some native libs on different platform, which doesn't include aarch64.
>
There is a series of bugs already that fix this and can be backported: JDK-8164322, JDK-8209011 & JDK-8267721
I was already looking at these when I saw JDK-8267721 appear in 11u, so will handle these backports.
Please flag JDK-8271466 with jdk8u-fix-request for approval. Do you need a sponsor to push the StackGap change?
>
> The fix patch here are:
>
> diff --git a/hotspot/test/runtime/StackGap/testme.sh b/hotspot/test/runtime/StackGap/testme.sh
> index 90265e6..5da0867 100644
> --- a/hotspot/test/runtime/StackGap/testme.sh
> +++ b/hotspot/test/runtime/StackGap/testme.sh
> @@ -49,7 +49,10 @@ if [ "x$gcc_cmd" = "x" ]; then
> exit 0;
> fi
> -CFLAGS="-m${VM_BITS}"
> +if [ "x${VM_CPU}" != "xaarch64" ];
> +then
> + CFLAGS="-m${VM_BITS}"
> +fi
> LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${VM_CPU}/${VM_TYPE}:/usr/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH
Thanks,
--
Andrew :)
Pronouns: he / him or they / them
Senior Free Java Software Engineer
OpenJDK Package Owner
Red Hat, Inc. (http://www.redhat.com)
PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
More information about the jdk8u-dev
mailing list