RFR: 8306580: Propagate CDS dumping errors instead of directly exiting the VM [v4]

Matias Saavedra Silva matsaave at openjdk.org
Tue Jun 11 21:16:24 UTC 2024


> 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.  Some of these errors can be propagated to the caller for a normal exit. 
> 
> This change introduces `MetaspaceShared::writing_error()` to report errors without exiting the VM. The function `MetaspaceShared::unrecoverable_writing_error()` now should only be used for errors that require the VM to exit. Verified with tier1-5 tests.

Matias Saavedra Silva has updated the pull request incrementally with two additional commits since the last revision:

 - Used ACLs for Windows directory
 - Uses correct directory for Windows

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/19370/files
  - new: https://git.openjdk.org/jdk/pull/19370/files/4e99c916..3f2ca355

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19370&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19370&range=02-03

  Stats: 32 lines in 1 file changed: 26 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/19370.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19370/head:pull/19370

PR: https://git.openjdk.org/jdk/pull/19370


More information about the hotspot-runtime-dev mailing list