< prev index next >

src/hotspot/share/classfile/classLoaderData.cpp

Print this page

        

@@ -966,5 +966,14 @@
   for (Klass* k = Atomic::load_acquire(&_klasses); k != NULL; k = k->next_link()) {
     if (k == klass) return true;
   }
   return false;
 }
+
+InstanceKlass* ClassLoaderData::replace_class(Symbol* class_name, InstanceKlass* k) {
+  assert_locked_or_safepoint(SystemDictionary_lock);
+  Dictionary* dict = dictionary();
+  unsigned hash  = dict->compute_hash(class_name);
+  int      index = dict->hash_to_index(hash);
+ 
+  return dict->replace_class(index, hash, class_name, k);
+}
< prev index next >