31 // Report a JNI failure caught by -Xcheck:jni. Perform a core dump. |
31 // Report a JNI failure caught by -Xcheck:jni. Perform a core dump. |
32 // Note: two variations -- one to be called when in VM state (e.g. when |
32 // Note: two variations -- one to be called when in VM state (e.g. when |
33 // within IN_VM macro), one to be called when in NATIVE state. |
33 // within IN_VM macro), one to be called when in NATIVE state. |
34 |
34 |
35 // When in VM state: |
35 // When in VM state: |
36 static void ReportJNIFatalError(JavaThread* thr, const char *msg) { |
36 static inline void ReportJNIFatalError(JavaThread* thr, const char *msg) { |
37 tty->print_cr("FATAL ERROR in native method: %s", msg); |
37 tty->print_cr("FATAL ERROR in native method: %s", msg); |
38 thr->print_stack(); |
38 thr->print_stack(); |
39 os::abort(true); |
39 os::abort(true); |
40 } |
40 } |
41 } |
41 } |