src/hotspot/share/classfile/classLoader.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/hotspot/share/classfile/classLoader.hpp

src/hotspot/share/classfile/classLoader.hpp

Print this page

        

*** 236,251 **** // Info used by CDS CDS_ONLY(static SharedPathsMiscInfo * _shared_paths_misc_info;) CDS_ONLY(static ClassPathEntry* _app_classpath_entries;) CDS_ONLY(static ClassPathEntry* _last_app_classpath_entry;) ! CDS_ONLY(static void setup_app_search_path(const char *class_path);) static void add_to_app_classpath_entries(const char* path, ClassPathEntry* entry, bool check_for_duplicates); public: CDS_ONLY(static ClassPathEntry* app_classpath_entries() {return _app_classpath_entries;}) protected: // Initialization: // - setup the boot loader's system class path // - setup the boot loader's patch mod entries, if present --- 236,257 ---- // Info used by CDS CDS_ONLY(static SharedPathsMiscInfo * _shared_paths_misc_info;) CDS_ONLY(static ClassPathEntry* _app_classpath_entries;) CDS_ONLY(static ClassPathEntry* _last_app_classpath_entry;) ! CDS_ONLY(static ClassPathEntry* _module_path_entries;) ! CDS_ONLY(static ClassPathEntry* _last_module_path_entry;) ! CDS_ONLY(static void setup_app_search_path(const char* class_path);) ! CDS_ONLY(static void setup_module_search_path(const char* path);) static void add_to_app_classpath_entries(const char* path, ClassPathEntry* entry, bool check_for_duplicates); + CDS_ONLY(static void add_to_module_path_entries(const char* path, + ClassPathEntry* entry);) public: CDS_ONLY(static ClassPathEntry* app_classpath_entries() {return _app_classpath_entries;}) + CDS_ONLY(static ClassPathEntry* module_path_entries() {return _module_path_entries;}) protected: // Initialization: // - setup the boot loader's system class path // - setup the boot loader's patch mod entries, if present
*** 284,293 **** --- 290,301 ---- static int crc32(int crc, const char* buf, int len); static bool update_class_path_entry_list(const char *path, bool check_for_duplicates, bool is_boot_append, bool throw_exception=true); + CDS_ONLY(static void update_module_path_entry_list(const char *path, + bool throw_exception=true);) static void print_bootclasspath(); // Timing static PerfCounter* perf_accumulated_time() { return _perf_accumulated_time; } static PerfCounter* perf_classes_inited() { return _perf_classes_inited; }
*** 380,389 **** --- 388,398 ---- // Initialization static void initialize(); static void classLoader_init2(TRAPS); CDS_ONLY(static void initialize_shared_path();) + CDS_ONLY(static void initialize_module_path();) static int compute_Object_vtable(); static ClassPathEntry* classpath_entry(int n);
*** 400,416 **** // Helper function used by CDS code to get the number of app classpath // entries during shared classpath setup time. static int num_app_classpath_entries(); static void check_shared_classpath(const char *path); static void finalize_shared_paths_misc_info(); static int get_shared_paths_misc_info_size(); static void* get_shared_paths_misc_info(); static bool check_shared_paths_misc_info(void* info, int size); static void exit_with_path_failure(const char* error, const char* message); ! static void record_result(InstanceKlass* ik, const ClassFileStream* stream); #endif static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name, const char* file_name, jlong &size); --- 409,439 ---- // Helper function used by CDS code to get the number of app classpath // entries during shared classpath setup time. static int num_app_classpath_entries(); + // Helper function used by CDS code to get the number of module path + // entries during shared classpath setup time. + static int num_module_path_entries() { + assert(DumpSharedSpaces, "Should only be called at CDS dump time"); + int num_entries = 0; + ClassPathEntry* e= ClassLoader::_module_path_entries; + while (e != NULL) { + num_entries ++; + e = e->next(); + } + return num_entries; + } static void check_shared_classpath(const char *path); static void finalize_shared_paths_misc_info(); static int get_shared_paths_misc_info_size(); static void* get_shared_paths_misc_info(); static bool check_shared_paths_misc_info(void* info, int size); + static int get_module_paths_misc_info_size(); + static void* get_module_paths_misc_info(); static void exit_with_path_failure(const char* error, const char* message); ! static char* skip_uri_protocol(char* source); static void record_result(InstanceKlass* ik, const ClassFileStream* stream); #endif static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name, const char* file_name, jlong &size);
src/hotspot/share/classfile/classLoader.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File