< prev index next >
src/hotspot/share/classfile/javaClasses.cpp
Print this page
*** 887,897 ****
assert(class_loader() == k->class_loader(), "should be same");
set_class_loader(mirror(), class_loader());
// Setup indirection from klass->mirror
// after any exceptions can happen during allocations.
! k->set_java_mirror(mirror());
// Set the module field in the java_lang_Class instance. This must be done
// after the mirror is set.
set_mirror_module_field(k, mirror, module, THREAD);
--- 887,897 ----
assert(class_loader() == k->class_loader(), "should be same");
set_class_loader(mirror(), class_loader());
// Setup indirection from klass->mirror
// after any exceptions can happen during allocations.
! k->set_java_mirror(mirror);
// Set the module field in the java_lang_Class instance. This must be done
// after the mirror is set.
set_mirror_module_field(k, mirror, module, THREAD);
< prev index next >