Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/whitebox.hpp @ 17704:56cd09c4a5c9
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 | 55fb97c4c58d |
children | 9e2a544d59cc |
comparison
equal
deleted
inserted
replaced
17703:744553976af5 | 17704:56cd09c4a5c9 |
---|---|
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; } |