src/share/vm/prims/jniCheck.hpp

changeset 4889
cc32ccaaf47f
parent 4492
8b46b0196eb0
child 6876
710a3c8b516e
equal deleted inserted replaced
4888:17bf4d428955 4889:cc32ccaaf47f
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 }

mercurial