Integrated: 8306580: Propagate CDS dumping errors instead of directly exiting the VM

Matias Saavedra Silva matsaave at openjdk.org
Mon Jun 24 18:22:17 UTC 2024


On Thu, 23 May 2024 15:31:50 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 4b153e5e
Author:    Matias Saavedra Silva <matsaave at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4b153e5e051c01ad8d0c3ff335352918c2970fe6
Stats:     149 lines in 7 files changed: 93 ins; 30 del; 26 mod

8306580: Propagate CDS dumping errors instead of directly exiting the VM

Reviewed-by: iklam, ccheung

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

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


More information about the hotspot-runtime-dev mailing list