RFR: JDK-8311788: ClassLoadUnloadTest fails on AIX after JDK-8193513 [v2]

Matthias Baesken mbaesken at openjdk.org
Wed Jul 12 11:02:21 UTC 2023


> 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) .

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  check for ClassLoadUnloadTestMain

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14829/files
  - new: https://git.openjdk.org/jdk/pull/14829/files/35e8e6f1..f092a4a7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14829&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14829&range=00-01

  Stats: 12 lines in 1 file changed: 0 ins; 1 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/14829.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14829/head:pull/14829

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


More information about the hotspot-runtime-dev mailing list