equal
deleted
inserted
replaced
48 #include "services/threadService.hpp" |
48 #include "services/threadService.hpp" |
49 #include "utilities/stringUtils.hpp" |
49 #include "utilities/stringUtils.hpp" |
50 |
50 |
51 jshort ClassLoaderExt::_app_class_paths_start_index = ClassLoaderExt::max_classpath_index; |
51 jshort ClassLoaderExt::_app_class_paths_start_index = ClassLoaderExt::max_classpath_index; |
52 jshort ClassLoaderExt::_app_module_paths_start_index = ClassLoaderExt::max_classpath_index; |
52 jshort ClassLoaderExt::_app_module_paths_start_index = ClassLoaderExt::max_classpath_index; |
|
53 jshort ClassLoaderExt::_max_used_path_index = 0; |
53 bool ClassLoaderExt::_has_app_classes = false; |
54 bool ClassLoaderExt::_has_app_classes = false; |
54 bool ClassLoaderExt::_has_platform_classes = false; |
55 bool ClassLoaderExt::_has_platform_classes = false; |
55 |
56 |
56 void ClassLoaderExt::append_boot_classpath(ClassPathEntry* new_entry) { |
57 void ClassLoaderExt::append_boot_classpath(ClassPathEntry* new_entry) { |
57 #if INCLUDE_CDS |
58 #if INCLUDE_CDS |
240 ClassLoaderExt::set_has_app_classes(); |
241 ClassLoaderExt::set_has_app_classes(); |
241 } else if (SystemDictionary::is_platform_class_loader(loader)) { |
242 } else if (SystemDictionary::is_platform_class_loader(loader)) { |
242 classloader_type = ClassLoader::PLATFORM_LOADER; |
243 classloader_type = ClassLoader::PLATFORM_LOADER; |
243 ClassLoaderExt::set_has_platform_classes(); |
244 ClassLoaderExt::set_has_platform_classes(); |
244 } |
245 } |
|
246 if (classpath_index > ClassLoaderExt::max_used_path_index()) { |
|
247 ClassLoaderExt::set_max_used_path_index(classpath_index); |
|
248 } |
245 result->set_shared_classpath_index(classpath_index); |
249 result->set_shared_classpath_index(classpath_index); |
246 result->set_class_loader_type(classloader_type); |
250 result->set_class_loader_type(classloader_type); |
247 } |
251 } |
248 |
252 |
249 void ClassLoaderExt::finalize_shared_paths_misc_info() { |
253 void ClassLoaderExt::finalize_shared_paths_misc_info() { |