< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

*** 1526,1535 **** --- 1526,1548 ---- if (Arguments::is_dumping_archive()) { ClassLoaderExt::setup_module_paths(THREAD); FileMapInfo::allocate_shared_path_table(); } } + + // Helper function used by CDS code to get the number of module path + // entries during shared classpath setup time. + int ClassLoader::num_module_path_entries() { + Arguments::assert_is_dumping_archive(); + int num_entries = 0; + ClassPathEntry* e= ClassLoader::_module_path_entries; + while (e != NULL) { + num_entries ++; + e = e->next(); + } + return num_entries; + } #endif jlong ClassLoader::classloader_time_ms() { return UsePerfData ? Management::ticks_to_ms(_perf_accumulated_time->get_value()) : -1;
< prev index next >