JDK-8311788 : ClassLoadUnloadTest fails on AIX after JDK-8193513
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2023-07-10
  • Updated: 2023-07-20
  • Resolved: 2023-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b07Fixed
Related Reports
Relates :  
Description
The change 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)
Comments
Changeset: 812dadb0 Author: Matthias Baesken <mbaesken@openjdk.org> Date: 2023-07-13 07:05:57 +0000 URL: https://git.openjdk.org/jdk/commit/812dadb0f9d59eae95b76d1f05570675bc33cc6f
13-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14829 Date: 2023-07-11 13:15:11 +0000
11-07-2023

Looks like the StringCoding class is not loaded/initialized in e.g. a HelloWorld on AIX, compare Linux vs. AIX : /linuxx86_64/images/jdk/bin/java -Xlog:class* Hello | grep StringCoding [0.049s][info][class,load ] java.lang.StringCoding source: shared objects file [0.049s][info][class,init ] 268 Initializing 'java/lang/StringCoding'(no method) (0x0000000800074450) /rs6000_64/images/jdk/bin/java -Xlog:class* Hello | grep StringCoding <nothing> So probably some other class than StringCoding should be used in the test.
10-07-2023