JDK-8315127 : CDSMapTest fails with incorrect number of oop references
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-08-28
  • Updated: 2023-09-07
  • Resolved: 2023-09-05
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 b14Fixed
Related Reports
Relates :  
Relates :  
Description
Like JDK-8310108, I think this test is failing due to AppCDS not being fully compatible yet with EnableJVMCI (JDK-8266329).

Parsed 428287 lines in SharedArchiveFile0.map
Found 19576 heap objects
Checked 8286 oop field references
----------System.err:(12/656)----------
java.lang.RuntimeException: CDS map file seems incorrect: 19576 objects but only 8286 oop field references
        at CDSMapTest.dump(CDSMapTest.java:82)
        at CDSMapTest.doTest(CDSMapTest.java:62)
        at CDSMapTest.main(CDSMapTest.java:42)
        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: 1f4cdb32 Author: Ioi Lam <iklam@openjdk.org> Date: 2023-09-05 20:56:09 +0000 URL: https://git.openjdk.org/jdk/commit/1f4cdb327f46085d3134d1d1164fccac35904566
05-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15527 Date: 2023-09-01 00:18:20 +0000
01-09-2023

The test may be buggy as it has a hard-coded value of 10000 here.
28-08-2023