hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 17826 9ad5cd464a75
parent 17823 0eeb35991a2e
child 17831 d8112d90739f
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Tue May 21 19:52:01 2013 -0700
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Wed May 22 14:37:49 2013 -0400
@@ -4040,6 +4040,9 @@
       }
     }
 
+    // Allocate mirror and initialize static fields
+    java_lang_Class::create_mirror(this_klass, protection_domain, CHECK_(nullHandle));
+
 
 #ifdef ASSERT
     if (ParseAllGenericSignatures) {
@@ -4055,17 +4058,6 @@
           this_klass(), &all_mirandas, CHECK_(nullHandle));
     }
 
-    // Allocate mirror and initialize static fields
-    java_lang_Class::create_mirror(this_klass, CHECK_(nullHandle));
-
-    // Allocate a simple java object for locking during class initialization.
-    // This needs to be a java object because it can be held across a java call.
-    typeArrayOop r = oopFactory::new_typeArray(T_INT, 0, CHECK_NULL);
-    this_klass->set_init_lock(r);
-
-    // TODO: Move these oops to the mirror
-    this_klass->set_protection_domain(protection_domain());
-
     // Update the loader_data graph.
     record_defined_class_dependencies(this_klass, CHECK_NULL);