Integrated: JDK-8311788: ClassLoadUnloadTest fails on AIX after JDK-8193513

Matthias Baesken mbaesken at openjdk.org
Thu Jul 13 07:08:23 UTC 2023


On Tue, 11 Jul 2023 13:15:11 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> The change [JDK-8193513](https://bugs.openjdk.org/browse/JDK-8193513) enhanced the test runtime/logging/ClassLoadUnloadTest.java . Unfortunately the test started to fail after this on AIX :
> 
> ----------System.err:(16/744)----------
>  stdout: [];
>  stderr: []
>  exitValue = 0
> 
> java.lang.RuntimeException: '[class,load,cause]' missing from stdout/stderr
> at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
> at ClassLoadUnloadTest.checkFor(ClassLoadUnloadTest.java:64)
> at ClassLoadUnloadTest.main(ClassLoadUnloadTest.java:128)
> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
> at java.base/java.lang.Thread.run(Thread.java:1570)
> 
> 
> Reason is that we check for class java.lang.StringCoding  in the UL output; but on AIX this class is not loaded because we have a different encoding/charset  (see  ISO_8859_1.INSTANCE in the String class). This different encoding is not using StringCoding.
> 
> I suppose the same might be true for JVMs without COMPACT_STRING supported (but did not check in detail) .

This pull request has now been integrated.

Changeset: 812dadb0
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/812dadb0f9d59eae95b76d1f05570675bc33cc6f
Stats:     12 lines in 1 file changed: 0 ins; 1 del; 11 mod

8311788: ClassLoadUnloadTest fails on AIX after JDK-8193513

Reviewed-by: lucy, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/14829


More information about the hotspot-runtime-dev mailing list