RFR: 8369442: ExitOnOutOfMemoryError should exit more gracefully [v2]

David Holmes dholmes at openjdk.org
Mon Oct 13 02:18:02 UTC 2025


On Fri, 10 Oct 2025 08:15:26 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> Are we sure that before_exit can handle being called at any point between set_init_completed and when we start running user byte code.

Good point! More generally if we can trigger OOM during VM init, then some of the tear-down actions in `before_exit` may not be valid if we haven't completed the corresponding init actions. And some of those "init" actions may happen after `set_init_completed`.

> I know we have internally questioned the validity of the development flag ExitOnFullCodeCache which also can call before_exit very early,

I would also question its validity, but as a develop flag I'd be prepared to accept that unexpected things may happen.

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

PR Comment: https://git.openjdk.org/jdk/pull/27718#issuecomment-3395651429


More information about the hotspot-dev mailing list