JDK-8277076 : ciReplay: better replay error messages
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2021-11-12
  • Updated: 2021-11-12
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
From 8276095 review:

     } else if (strcmp("version", cmd) == 0) {
      _version = parse_int("version");
      if (_version > REPLAY_VERSION) {
        report_error("unrecognized version");

Vladimir:

Would be nice to print both versions numbers in error message.
Also I would like to be able ignore such error and process file anyway. Is report_error allows it?

Dean:

Currently report_error() saves the error string to be printed later, so to have an error message that requires formatting, I guess I would have to allocate the string using malloc or ResourceObj memory.
Right now the only ignore flag is ReplayIgnoreInitErrors. I could introduce something like ReplayIgnoreAllErrors , or maybe turn this error into a warning.