< prev index next >

src/hotspot/share/classfile/classLoaderExt.cpp

Print this page

        

*** 60,70 **** } ClassLoader::add_to_boot_append_entries(new_entry); } void ClassLoaderExt::setup_app_search_path() { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "this function is only used at CDS dump time"); _app_class_paths_start_index = ClassLoader::num_boot_classpath_entries(); char* app_class_path = os::strdup(Arguments::get_appclasspath()); if (strcmp(app_class_path, ".") == 0) { --- 60,70 ---- } ClassLoader::add_to_boot_append_entries(new_entry); } void ClassLoaderExt::setup_app_search_path() { ! assert(Arguments::is_dumping_archive(), "this function is only used at CDS dump time"); _app_class_paths_start_index = ClassLoader::num_boot_classpath_entries(); char* app_class_path = os::strdup(Arguments::get_appclasspath()); if (strcmp(app_class_path, ".") == 0) {
*** 90,100 **** m = m->next(); } } } void ClassLoaderExt::setup_module_paths(TRAPS) { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "this function is only used with CDS dump time"); _app_module_paths_start_index = ClassLoader::num_boot_classpath_entries() + ClassLoader::num_app_classpath_entries(); Handle system_class_loader (THREAD, SystemDictionary::java_system_loader()); ModuleEntryTable* met = Modules::get_module_entry_table(system_class_loader); --- 90,100 ---- m = m->next(); } } } void ClassLoaderExt::setup_module_paths(TRAPS) { ! assert(Arguments::is_dumping_archive(), "this function is only used with CDS dump time"); _app_module_paths_start_index = ClassLoader::num_boot_classpath_entries() + ClassLoader::num_app_classpath_entries(); Handle system_class_loader (THREAD, SystemDictionary::java_system_loader()); ModuleEntryTable* met = Modules::get_module_entry_table(system_class_loader);
*** 229,239 **** } void ClassLoaderExt::record_result(const s2 classpath_index, InstanceKlass* result, TRAPS) { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "Sanity"); // We need to remember where the class comes from during dumping. oop loader = result->class_loader(); s2 classloader_type = ClassLoader::BOOT_LOADER; if (SystemDictionary::is_system_class_loader(loader)) { --- 229,239 ---- } void ClassLoaderExt::record_result(const s2 classpath_index, InstanceKlass* result, TRAPS) { ! assert(Arguments::is_dumping_archive(), "Sanity"); // We need to remember where the class comes from during dumping. oop loader = result->class_loader(); s2 classloader_type = ClassLoader::BOOT_LOADER; if (SystemDictionary::is_system_class_loader(loader)) {
< prev index next >