RFR: 8369442: ExitOnOutOfMemoryError should exit more gracefully
Aleksey Shipilev
shade at openjdk.org
Thu Oct 9 08:44:14 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`
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.org/jdk/pull/27718/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27718&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8369442
Stats: 3 lines in 1 file changed: 2 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