hotspot/src/share/vm/prims/whitebox.hpp
changeset 22786 86644d9539c2
parent 22234 da823d78ad65
child 22792 954fdcaf3b37
equal deleted inserted replaced
22782:a3b1d68b373d 22786:86644d9539c2
    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; }