hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 31862 8673bd4db4b1
parent 31587 e48945b7849c
child 31865 c3edfbc8f5ac
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Mon Jul 13 09:44:38 2015 +0200
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Jul 16 15:02:12 2015 +0200
@@ -4172,10 +4172,13 @@
         }
       }
 
+#ifdef ASSERT
       if (CheckIntrinsics) {
         // Check for orphan methods in the current class. A method m
         // of a class C is orphan if an intrinsic is defined for method m,
         // but class C does not declare m.
+        // The check is potentially expensive, therefore it is available
+        // only in debug builds.
 
         for (int id = vmIntrinsics::FIRST_ID; id < (int)vmIntrinsics::ID_LIMIT; id++) {
           if (id == vmIntrinsics::_compiledLambdaForm) {
@@ -4211,8 +4214,10 @@
           }
         }
       }
+#endif // ASSERT
     }
 
+
     if (cached_class_file != NULL) {
       // JVMTI: we have an InstanceKlass now, tell it about the cached bytes
       this_klass->set_cached_class_file(cached_class_file);