Mercurial > hg > truffle
comparison src/share/vm/prims/jni.cpp @ 227:8d852b81e775
6694099: Hotspot vm_exit_out_of_memory should dump core
Summary: This fix enables the generation of core file when process runs out of C-heap.
Reviewed-by: sbohne
author | poonam |
---|---|
date | Sun, 22 Jun 2008 20:07:58 -0700 |
parents | ba764ed4b6f2 |
children | 9c2ecc2ffb12 |
comparison
equal
deleted
inserted
replaced
226:d5ba4f8aa38a | 227:8d852b81e775 |
---|---|
629 JNI_ENTRY(void, jni_FatalError(JNIEnv *env, const char *msg)) | 629 JNI_ENTRY(void, jni_FatalError(JNIEnv *env, const char *msg)) |
630 JNIWrapper("FatalError"); | 630 JNIWrapper("FatalError"); |
631 DTRACE_PROBE2(hotspot_jni, FatalError__entry, env, msg); | 631 DTRACE_PROBE2(hotspot_jni, FatalError__entry, env, msg); |
632 tty->print_cr("FATAL ERROR in native method: %s", msg); | 632 tty->print_cr("FATAL ERROR in native method: %s", msg); |
633 thread->print_stack(); | 633 thread->print_stack(); |
634 os::abort(false); // Prevent core dump, causes a jck failure. | 634 os::abort(); // Dump core and abort |
635 JNI_END | 635 JNI_END |
636 | 636 |
637 | 637 |
638 JNI_ENTRY(jint, jni_PushLocalFrame(JNIEnv *env, jint capacity)) | 638 JNI_ENTRY(jint, jni_PushLocalFrame(JNIEnv *env, jint capacity)) |
639 JNIWrapper("PushLocalFrame"); | 639 JNIWrapper("PushLocalFrame"); |