Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306580

Propagate CDS dumping errors instead of directly exiting the VM

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 21
    • hotspot
    • b04

      Currently, when CDS dumping run into an unrecoverable error (e.g., file I/O error, out of memory), it calls MetaspaceShared::unrecoverable_writing_error(), which directly exits the VM.

      It would be good if the error is properly propagated to the caller, and then we exit the VM with the usual exit sequence (or somehow continue, if the error happens inside jcmd dumping).

      Note: much of the CDS dumping runs inside the VM thread, so we probably cannot use the usual TRAPS convention for error propagation. If we have to manually check for an error code at every function call, that may result in fragile code.

            matsaave Matias Saavedra Silva
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: