6790209: server VM fails with assert(will_link,"_new: typeflow responsibility")
authorkvn
Fri, 16 Jan 2009 11:23:10 -0800
changeset 2020 68d27ca96f33
parent 2019 086661823c2b
child 2021 3c26c11fa62e
6790209: server VM fails with assert(will_link,"_new: typeflow responsibility") Summary: Add missing code for reflection class loader in SystemDictionary::find(). Reviewed-by: never, jrose
hotspot/src/share/vm/classfile/systemDictionary.cpp
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Wed Jan 14 14:12:00 2009 -0800
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Fri Jan 16 11:23:10 2009 -0800
@@ -841,6 +841,12 @@
                                 Handle protection_domain,
                                 TRAPS) {
 
+  // UseNewReflection
+  // The result of this call should be consistent with the result
+  // of the call to resolve_instance_class_or_null().
+  // See evaluation 6790209 and 4474172 for more details.
+  class_loader = Handle(THREAD, java_lang_ClassLoader::non_reflection_class_loader(class_loader()));
+
   unsigned int d_hash = dictionary()->compute_hash(class_name, class_loader);
   int d_index = dictionary()->hash_to_index(d_hash);