JDK-8357923 : Incorrect log message in cds/filemap.cpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 25
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-05-27
  • Updated: 2025-06-02
  • Resolved: 2025-06-02
Related Reports
Duplicate :  
Description
When generating archive in the assembly phase of AOT workflow, incorrect log message is generated here:

void FileMapInfo::open_as_output() {
  if (CDSConfig::new_aot_flags_used()) {
    if (CDSConfig::is_dumping_preimage_static_archive()) {
      log_info(aot)("Writing binary AOTConfiguration file: %s",  _full_path);
    } else {
      log_info(aot)("Writing binary AOTConfiguration file: %s",  _full_path);
    }
  ...
}

The log message in "else" block is incorrect. It is a copy of the "if" block so likely a copy-paste error.
Comments
[~asmehra] only issues with an associated changeset are to be marked as Fixed. If this was addresses by the JDK-8355798 then it should be Closed as a Duplicate of that issue.
02-06-2025

Closing it as it is resolved by JDK-8355798.
31-05-2025

I have fixed this error message as part of JDK-8355798 since I had to write test cases that checks for the message: $ git diff master | grep 'Writing' - log_info(aot)("Writing binary AOTConfiguration file: %s", _full_path); + log_info(aot)("Writing AOTCache file: %s", _full_path); + out.shouldContain("Writing AOTCache file:");
28-05-2025