comparison src/share/vm/prims/whitebox.hpp @ 17810:62c54fcc0a35

Merge
author kvn
date Tue, 25 Mar 2014 17:07:36 -0700
parents ba2cf1fc862b
children 4ca6dc0799b6 4abb719c5620
comparison
equal deleted inserted replaced
17809:a433eb716ce1 17810:62c54fcc0a35
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 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \
42 if (HAS_PENDING_EXCEPTION) { \
43 CLEAR_PENDING_EXCEPTION; \
44 return(value); \
45 } \
46 } while (0)
47
48 #define CHECK_JNI_EXCEPTION(env) \
49 do { \
50 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \
51 if (HAS_PENDING_EXCEPTION) { \
52 CLEAR_PENDING_EXCEPTION; \
53 return; \
54 } \
55 } while (0)
56
39 class WhiteBox : public AllStatic { 57 class WhiteBox : public AllStatic {
40 private: 58 private:
41 static bool _used; 59 static bool _used;
42 public: 60 public:
43 static bool used() { return _used; } 61 static bool used() { return _used; }