JDK-8281941 : Change CDS warning messages to use Unified Logging
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-02-16
  • Updated: 2023-01-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 21
21Unresolved
Related Reports
Relates :  
Description
For consistency, we should go over all CDS warnings, convert them to UL and clean up as necessary.

----
Most CDS warning message have been changed to use UL, but some have not:

$ java -Xshare:off -XX:ArchiveClassesAtExit=foo -version
Java HotSpot(TM) 64-Bit Server VM warning: -XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.

----
There are also old warning message that used to be prefixed with UseSharedSpaces. E.g.,

UseSharedSpaces: Checksum verification failed.

But when these were converted to UL, the "UseSharedSpaces" was left there by mistake:

[0.262s][info][cds] UseSharedSpaces: Checksum verification failed.