src/hotspot/share/memory/metaspaceShared.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/hotspot/share/memory/metaspaceShared.cpp

src/hotspot/share/memory/metaspaceShared.cpp

Print this page

        

*** 1625,1642 **** --- 1625,1644 ---- if (log_is_enabled(Trace, cds)) { ResourceMark rm; log_trace(cds)("Shared spaces preloaded: %s", klass->external_name()); } + if (klass->is_instance_klass()) { InstanceKlass* ik = InstanceKlass::cast(klass); // Link the class to cause the bytecodes to be rewritten and the // cpcache to be created. The linking is done as soon as classes // are loaded in order that the related data structures (klass and // cpCache) are located together. try_link_class(ik, THREAD); guarantee(!HAS_PENDING_EXCEPTION, "exception in link_class"); + } class_count++; } }
src/hotspot/share/memory/metaspaceShared.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File