Merge
authordcubed
Wed, 26 May 2010 14:16:55 -0700
changeset 5684 f6538e83cf3b
parent 5545 c531522ec99a (current diff)
parent 5683 116fea597b5d (diff)
child 5685 0e4c848d5c06
child 5709 3b5307e27c1d
child 5710 d664086c0add
Merge
--- a/hotspot/src/share/vm/classfile/verifier.cpp	Thu May 20 08:32:11 2010 -0700
+++ b/hotspot/src/share/vm/classfile/verifier.cpp	Wed May 26 14:16:55 2010 -0700
@@ -25,6 +25,8 @@
 # include "incls/_precompiled.incl"
 # include "incls/_verifier.cpp.incl"
 
+#define NOFAILOVER_MAJOR_VERSION 51
+
 // Access to external entry for VerifyClassCodes - old byte code verifier
 
 extern "C" {
@@ -91,7 +93,8 @@
           klass, message_buffer, message_buffer_len, THREAD);
         split_verifier.verify_class(THREAD);
         exception_name = split_verifier.result();
-      if (FailOverToOldVerifier && !HAS_PENDING_EXCEPTION &&
+      if (klass->major_version() < NOFAILOVER_MAJOR_VERSION &&
+          FailOverToOldVerifier && !HAS_PENDING_EXCEPTION &&
           (exception_name == vmSymbols::java_lang_VerifyError() ||
            exception_name == vmSymbols::java_lang_ClassFormatError())) {
         if (TraceClassInitialization) {