hotspot/src/share/vm/memory/metaspaceShared.cpp
changeset 33602 16053580a684
parent 33148 68fa8b6c4340
child 33611 9abd65805e19
equal deleted inserted replaced
33597:5d42601232b1 33602:16053580a684
   678 
   678 
   679 
   679 
   680 void MetaspaceShared::link_one_shared_class(Klass* obj, TRAPS) {
   680 void MetaspaceShared::link_one_shared_class(Klass* obj, TRAPS) {
   681   Klass* k = obj;
   681   Klass* k = obj;
   682   if (k->oop_is_instance()) {
   682   if (k->oop_is_instance()) {
   683     InstanceKlass* ik = (InstanceKlass*) k;
   683     InstanceKlass* ik = InstanceKlass::cast(k);
   684     // Link the class to cause the bytecodes to be rewritten and the
   684     // Link the class to cause the bytecodes to be rewritten and the
   685     // cpcache to be created. Class verification is done according
   685     // cpcache to be created. Class verification is done according
   686     // to -Xverify setting.
   686     // to -Xverify setting.
   687     _link_classes_made_progress |= try_link_class(ik, THREAD);
   687     _link_classes_made_progress |= try_link_class(ik, THREAD);
   688     guarantee(!HAS_PENDING_EXCEPTION, "exception in link_class");
   688     guarantee(!HAS_PENDING_EXCEPTION, "exception in link_class");