comparison src/share/vm/prims/whitebox.hpp @ 14370:4f6bf7dd3f52

8028785: [parfait] warnings from b116 for hotspot.src.share.vm.prims: JNI exception pending Summary: added JNI exception pending check in several files under src/share/vm/prims directory Reviewed-by: coleenp, minqi
author ccheung
date Wed, 12 Feb 2014 12:01:45 -0800
parents de6a9e811145
children 9e2a544d59cc
comparison
equal deleted inserted replaced
14366:7907932bdd99 14370:4f6bf7dd3f52
34 34
35 #define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header) 35 #define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header)
36 #define WB_END JNI_END 36 #define WB_END JNI_END
37 #define WB_METHOD_DECLARE(result_type) extern "C" result_type JNICALL 37 #define WB_METHOD_DECLARE(result_type) extern "C" result_type JNICALL
38 38
39 #define CHECK_JNI_EXCEPTION_(env, value) \
40 do { \
41 if (env->ExceptionCheck()) { \
42 env->ExceptionClear(); \
43 return(value); \
44 } \
45 } while (0)
46
47 #define CHECK_JNI_EXCEPTION(env) \
48 do { \
49 if (env->ExceptionCheck()) { \
50 env->ExceptionClear(); \
51 return; \
52 } \
53 } while (0)
54
39 class WhiteBox : public AllStatic { 55 class WhiteBox : public AllStatic {
40 private: 56 private:
41 static bool _used; 57 static bool _used;
42 public: 58 public:
43 static bool used() { return _used; } 59 static bool used() { return _used; }