< prev index next >

src/hotspot/share/classfile/verifier.hpp

Print this page

        

*** 40,59 **** STACKMAP_ATTRIBUTE_MAJOR_VERSION = 50, INVOKEDYNAMIC_MAJOR_VERSION = 51, 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. ! */ 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 // -Xverify:all/none override this value static bool should_verify_for(oop class_loader, bool should_verify_class); --- 40,54 ---- STACKMAP_ATTRIBUTE_MAJOR_VERSION = 50, INVOKEDYNAMIC_MAJOR_VERSION = 51, NO_RELAX_ACCESS_CTRL_CHECK_VERSION = 52, DYNAMICCONSTANT_MAJOR_VERSION = 55 }; ! // 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); // Return false if the class is loaded by the bootstrap loader, // or if defineClass was called requesting skipping verification // -Xverify:all/none override this value static bool should_verify_for(oop class_loader, bool should_verify_class);
< prev index next >