RFR: 8306580: Propagate CDS dumping errors instead of directly exiting the VM [v6]
Calvin Cheung
ccheung at openjdk.org
Fri Jun 14 18:00:15 UTC 2024
On Fri, 14 Jun 2024 16:39:07 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.
>
> Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:
>
> Ioi comments
Marked as reviewed by ccheung (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/19370#pullrequestreview-2118966560
More information about the hotspot-runtime-dev
mailing list