hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 8314 057b1c20fd7e
parent 8076 96d498ec7ae1
child 8675 e9fef2a9bef7
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Thu Jan 27 16:11:27 2011 -0800
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Mon Jan 31 17:48:21 2011 -0800
@@ -1690,6 +1690,8 @@
 
 void SystemDictionary::add_to_hierarchy(instanceKlassHandle k, TRAPS) {
   assert(k.not_null(), "just checking");
+  assert_locked_or_safepoint(Compile_lock);
+
   // Link into hierachy. Make sure the vtables are initialized before linking into
   k->append_to_sibling_list();                    // add to superklass/sibling list
   k->process_interfaces(THREAD);                  // handle all "implements" declarations
@@ -2152,6 +2154,9 @@
 }
 
 
+// Try to find a class name using the loader constraints.  The
+// loader constraints might know about a class that isn't fully loaded
+// yet and these will be ignored.
 klassOop SystemDictionary::find_constrained_instance_or_array_klass(
                     Symbol* class_name, Handle class_loader, TRAPS) {