Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/hotspot/share/utilities/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ void report_java_out_of_memory(const char* message) {

if (ExitOnOutOfMemoryError) {
tty->print_cr("Terminating due to java.lang.OutOfMemoryError: %s", message);
os::_exit(3); // quick exit with no cleanup hooks run
// Gracefully exit with no cleanup hooks run - just like JVM_Halt
before_exit(JavaThread::current(), /* halt = */ true);
vm_exit(3);
}
}
}
Expand Down