--- a/src/hotspot/share/classfile/verifier.hpp Tue Sep 11 17:48:24 2018 +0530
+++ b/src/hotspot/share/classfile/verifier.hpp Tue Sep 11 09:53:41 2018 -0400
@@ -42,16 +42,11 @@
NO_RELAX_ACCESS_CTRL_CHECK_VERSION = 52,
DYNAMICCONSTANT_MAJOR_VERSION = 55
};
- typedef enum { ThrowException, NoException } Mode;
- /**
- * Verify the bytecodes for a class. If 'throw_exception' is true
- * then the appropriate VerifyError or ClassFormatError will be thrown.
- * Otherwise, no exception is thrown and the return indicates the
- * error.
- */
+ // Verify the bytecodes for a class.
+ static bool verify(InstanceKlass* klass, bool should_verify_class, TRAPS);
+
static void log_end_verification(outputStream* st, const char* klassName, Symbol* exception_name, TRAPS);
- static bool verify(InstanceKlass* klass, Mode mode, bool should_verify_class, TRAPS);
// Return false if the class is loaded by the bootstrap loader,
// or if defineClass was called requesting skipping verification