-
Bug
-
Resolution: Fixed
-
P4
-
23
-
b14
-
ppc
-
aix
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8327833 | 22.0.2 | Joachim Kern | P4 | Resolved | Fixed | b01 |
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).
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).
- backported by
-
JDK-8327833 runtime/CompressedOops/CompressedClassPointers.java fails on AIX
- Resolved
- duplicates
-
JDK-8315524 [aix] Reactivate and check os::attempt_reserve_between gtests
- Closed
- relates to
-
JDK-8305765 CompressedClassPointers.java is unreliable due to ASLR
- Resolved
- links to
-
Commit openjdk/jdk22u/9b52a009
-
Commit openjdk/jdk/997e615c
-
Review openjdk/jdk22u/92
-
Review openjdk/jdk/17708
-
Review openjdk/jdk/18105
(3 links to)