RFR: 8369442: ExitOnOutOfMemoryError should exit more gracefully [v2]
Aleksey Shipilev
shade at openjdk.org
Fri Oct 10 06:12:42 UTC 2025
> See RFE for more discussion. It seems we have a leeway in defining what "exit" means for `-XX:+ExitOnOutOfMemoryError`, and this PR does it more akin to `JVM_Halt`, rather than abrupt `os::_exit`. This gives VM a chance to shutdown some of its subsystems gracefully.
>
> Comments welcome!
>
> Additional testing:
> - [x] Linux x86_64 server fastdebug, `tier1`
> - [ ] Linux x86_64 server fastdebug, `all`
Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
Update src/hotspot/share/utilities/debug.cpp
Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27718/files
- new: https://git.openjdk.org/jdk/pull/27718/files/238d2901..40062dfc
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27718&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27718&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27718.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27718/head:pull/27718
PR: https://git.openjdk.org/jdk/pull/27718
More information about the hotspot-dev
mailing list