JDK-8278310 : Improve logging in CDS DynamicLoaderConstraintsTest.java
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-12-06
  • Updated: 2021-12-16
  • Resolved: 2021-12-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 18 JDK 19
18 b28Fixed 19Fixed
Description
In JDK-8278299, we have a failure in this test but there wasn't enough information in the log file to see why (offset <= MAX_SHARED_DELTA) failed.

Suggested fixes:
[1] Add -Xlog:cds=debug to the command line
[2] Update the "guarantee(offset <= MAX_SHARED_DELTA) failed: must be 32-bit offset" in the VM to print out the actual offset.
Comments
Changeset: 40d726b8 Author: Calvin Cheung <ccheung@openjdk.org> Date: 2021-12-08 16:07:49 +0000 URL: https://git.openjdk.java.net/jdk/commit/40d726b8aae7dff4316115b3a25001d502321efe
08-12-2021