JDK-8234058 : runtime/CompressedOops/CompressedClassPointers.java fails with 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-13
  • Updated: 2021-05-17
  • Resolved: 2019-11-21
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 11 JDK 13 JDK 14 JDK 8
11.0.9-oracleFixed 13.0.7Fixed 14 b25Fixed 8u311Fixed
Related Reports
Relates :  
Relates :  
Description
Test runtime/CompressedOops/CompressedClassPointers.java fails in JDK 14-21. Where JDK-8086003 is supposed to be fixed.

The log:
stdout: [[0.085s][trace][gc,metaspace] node @0x000001d4e7108090: reserved=1048576.00 KB, committed=0.00 KB (  0%), used=0.00 KB (  0%)
[0.085s][trace][gc,metaspace]    [0x000001d48f000000, 0x000001d48f000000, 0x000001d48f000000, 0x000001d4cf000000)
[0.085s][trace][gc,metaspace] Narrow klass base: 0x000001d48f000000, Narrow klass shift: 0
[0.086s][trace][gc,metaspace] Compressed class space size: 1073741824 Address: 0x000001d48f000000 Req Addr: 0x0000000100000000
[0.086s][trace][gc,metaspace] node @0x000001d4e71071b0: reserved=8192.00 KB, committed=0.00 KB (  0%), used=0.00 KB (  0%)
[0.086s][trace][gc,metaspace]    [0x000001d4fdce0000, 0x000001d4fdce0000, 0x000001d4fdce0000, 0x000001d4fe4e0000)
];
 stderr: [java version "14-ea" 2020-03-17
Java(TM) SE Runtime Environment (fastdebug build 14-ea+21-927)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 14-ea+21-927, mixed mode)
]
 exitValue = 0

java.lang.RuntimeException: 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
	at CompressedClassPointers.smallHeapTest(CompressedClassPointers.java:52)
	at CompressedClassPointers.main(CompressedClassPointers.java:151)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:830)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr
Comments
Fix request (13u) -- will label after testing completed. I would like to backport the fix to jdk13u for parity with jdk11u. The original patch applied cleanly.
04-02-2021

Fix request (11u) -- will label after testing completed. I would like to downport this for parity with 11.0.9-oracle. Applies clean.
28-05-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/8a24f1e73c0d User: hseigel Date: 2019-11-21 18:54:54 +0000
21-11-2019

ILW = MMM = P3
19-11-2019