JDK-8322943 : runtime/CompressedOops/CompressedClassPointers.java fails on AIX
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2024-01-03
  • Updated: 2024-03-26
  • Resolved: 2024-03-08
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 JDK 23
22.0.2Fixed 23 b14Fixed
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8322945 :  
Description
Even after recent fixes like
https://bugs.openjdk.org/browse/JDK-8305765
the test runtime/CompressedOops/CompressedClassPointers.java fails on AIX.

example output of a failing test:
----------System.err:(22/1306)----------
 stdout: [[0.015s][info][gc,metaspace] Compressed class space mapped at: 0x0000012200000000-0x0000012240000000, reserved size: 1073741824
[0.015s][info][gc,metaspace] Narrow klass base: 0x0000012200000000, Narrow klass shift: 0, Narrow klass range: 0x40000000
];
 stderr: [OpenJDK 64-Bit Server VM warning: Shared spaces are not supported in this VM
openjdk version "23-internal" 2024-01-03
OpenJDK Runtime Environment (build 23-internal-adhoc.sapmachine.jdk)
OpenJDK 64-Bit Server VM (build 23-internal-adhoc.sapmachine.jdk, mixed mode)
]
 exitValue = 0

java.lang.RuntimeException: 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:244)
	at CompressedClassPointers.largeHeapTestNoCoop(CompressedClassPointers.java:265)
	at CompressedClassPointers.main(CompressedClassPointers.java:351)
	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)

This error results from the fact, that on AIX the shmat() allocation granularity is 256MB instead of the standard Pagesize (4KB or 64KB).

Comments
[jdk22u-fix-request] Approval Request from JoKern65 Backport of fix for AIX. No risk, clean backport.
08-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22u/pull/92 Date: 2024-03-08 13:54:43 +0000
08-03-2024

Changeset: 997e615c Author: Joachim Kern <jkern@openjdk.org> Committer: Matthias Baesken <mbaesken@openjdk.org> Date: 2024-03-08 13:23:06 +0000 URL: https://git.openjdk.org/jdk/commit/997e615c69f4445d92e164b814ea3358659e93dc
08-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18105 Date: 2024-03-04 10:13:13 +0000
04-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17708 Date: 2024-02-05 12:08:10 +0000
05-02-2024