src/hotspot/share/memory/metaspaceShared.cpp
changeset 48383 d6388b652504
parent 47765 b7c7428eaab9
child 48794 ea0d0781c63c
equal deleted inserted replaced
48382:0997d6959851 48383:d6388b652504
  1625         if (log_is_enabled(Trace, cds)) {
  1625         if (log_is_enabled(Trace, cds)) {
  1626           ResourceMark rm;
  1626           ResourceMark rm;
  1627           log_trace(cds)("Shared spaces preloaded: %s", klass->external_name());
  1627           log_trace(cds)("Shared spaces preloaded: %s", klass->external_name());
  1628         }
  1628         }
  1629 
  1629 
  1630         InstanceKlass* ik = InstanceKlass::cast(klass);
  1630         if (klass->is_instance_klass()) {
  1631 
  1631           InstanceKlass* ik = InstanceKlass::cast(klass);
  1632         // Link the class to cause the bytecodes to be rewritten and the
  1632 
  1633         // cpcache to be created. The linking is done as soon as classes
  1633           // Link the class to cause the bytecodes to be rewritten and the
  1634         // are loaded in order that the related data structures (klass and
  1634           // cpcache to be created. The linking is done as soon as classes
  1635         // cpCache) are located together.
  1635           // are loaded in order that the related data structures (klass and
  1636         try_link_class(ik, THREAD);
  1636           // cpCache) are located together.
  1637         guarantee(!HAS_PENDING_EXCEPTION, "exception in link_class");
  1637           try_link_class(ik, THREAD);
       
  1638           guarantee(!HAS_PENDING_EXCEPTION, "exception in link_class");
       
  1639         }
  1638 
  1640 
  1639         class_count++;
  1641         class_count++;
  1640       }
  1642       }
  1641     }
  1643     }
  1642 
  1644