src/share/vm/prims/whitebox.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/prims/whitebox.hpp Thu Feb 6 15:16:10 2014
--- new/src/share/vm/prims/whitebox.hpp Thu Feb 6 15:16:10 2014
*** 34,43 ****
--- 34,59 ----
#define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header)
#define WB_END JNI_END
#define WB_METHOD_DECLARE(result_type) extern "C" result_type JNICALL
+ #define CHECK_JNI_EXCEPTION_RETURN_VALUE(env, value) \
+ do { \
+ if (env->ExceptionCheck()) { \
+ env->ExceptionClear(); \
+ return(value); \
+ } \
+ } while (0)
+
+ #define CHECK_JNI_EXCEPTION_RETURN(env) \
+ do { \
+ if (env->ExceptionCheck()) { \
+ env->ExceptionClear(); \
+ return; \
+ } \
+ } while (0)
+
class WhiteBox : public AllStatic {
private:
static bool _used;
public:
static bool used() { return _used; }
src/share/vm/prims/whitebox.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File