6694099: Hotspot vm_exit_out_of_memory should dump core

This fix enables the generation of core file when process runs out of C-heap.

Reviewed-by: sbohne
This commit is contained in:
Poonam Bajaj 2008-06-22 20:07:58 -07:00
parent 69eb2b72c6
commit 1f819855d5
4 changed files with 16 additions and 8 deletions

View file

@ -631,7 +631,7 @@ JNI_ENTRY(void, jni_FatalError(JNIEnv *env, const char *msg))
DTRACE_PROBE2(hotspot_jni, FatalError__entry, env, msg);
tty->print_cr("FATAL ERROR in native method: %s", msg);
thread->print_stack();
os::abort(false); // Prevent core dump, causes a jck failure.
os::abort(); // Dump core and abort
JNI_END