< prev index next >

src/hotspot/share/classfile/classLoader.inline.hpp

Print this page

        

*** 60,70 **** // Helper function used by CDS code to get the number of boot classpath // entries during shared classpath setup time. inline int ClassLoader::num_boot_classpath_entries() { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "Should only be called at CDS dump time"); assert(has_jrt_entry(), "must have a java runtime image"); int num_entries = 1; // count the runtime image ClassPathEntry* e = ClassLoader::_first_append_entry; while (e != NULL) { --- 60,70 ---- // Helper function used by CDS code to get the number of boot classpath // entries during shared classpath setup time. inline int ClassLoader::num_boot_classpath_entries() { ! assert(Arguments::is_dumping_archive(), "Should only be called at CDS dump time"); assert(has_jrt_entry(), "must have a java runtime image"); int num_entries = 1; // count the runtime image ClassPathEntry* e = ClassLoader::_first_append_entry; while (e != NULL) {
*** 83,93 **** } // Helper function used by CDS code to get the number of app classpath // entries during shared classpath setup time. inline int ClassLoader::num_app_classpath_entries() { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "Should only be called at CDS dump time"); int num_entries = 0; ClassPathEntry* e= ClassLoader::_app_classpath_entries; while (e != NULL) { num_entries ++; --- 83,93 ---- } // Helper function used by CDS code to get the number of app classpath // entries during shared classpath setup time. inline int ClassLoader::num_app_classpath_entries() { ! assert(Arguments::is_dumping_archive(), "Should only be called at CDS dump time"); int num_entries = 0; ClassPathEntry* e= ClassLoader::_app_classpath_entries; while (e != NULL) { num_entries ++;
< prev index next >