src/share/vm/prims/whitebox.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hs-jdk9-8028785 Cdiff src/share/vm/prims/whitebox.hpp

src/share/vm/prims/whitebox.hpp

Print this page

        

*** 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_(env, value) \ + do { \ + if (env->ExceptionCheck()) { \ + env->ExceptionClear(); \ + return(value); \ + } \ + } while (0) + + #define CHECK_JNI_EXCEPTION(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