comparison src/share/vm/prims/jniCheck.hpp @ 9060:cc32ccaaf47f

8003310: Enable -Wunused-function when compiling with gcc Summary: Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
author mikael
date Thu, 04 Apr 2013 10:01:26 -0700
parents 8b46b0196eb0
children
comparison
equal deleted inserted replaced
9059:17bf4d428955 9060: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 }