equal
deleted
inserted
replaced
396 static int num_app_classpath_entries(); |
396 static int num_app_classpath_entries(); |
397 |
397 |
398 // Helper function used by CDS code to get the number of module path |
398 // Helper function used by CDS code to get the number of module path |
399 // entries during shared classpath setup time. |
399 // entries during shared classpath setup time. |
400 static int num_module_path_entries() { |
400 static int num_module_path_entries() { |
401 assert(DumpSharedSpaces, "Should only be called at CDS dump time"); |
401 assert(DumpSharedSpaces || DynamicDumpSharedSpaces, |
|
402 "Should only be called at CDS dump time"); |
402 int num_entries = 0; |
403 int num_entries = 0; |
403 ClassPathEntry* e= ClassLoader::_module_path_entries; |
404 ClassPathEntry* e= ClassLoader::_module_path_entries; |
404 while (e != NULL) { |
405 while (e != NULL) { |
405 num_entries ++; |
406 num_entries ++; |
406 e = e->next(); |
407 e = e->next(); |
408 return num_entries; |
409 return num_entries; |
409 } |
410 } |
410 static void finalize_shared_paths_misc_info(); |
411 static void finalize_shared_paths_misc_info(); |
411 static int get_shared_paths_misc_info_size(); |
412 static int get_shared_paths_misc_info_size(); |
412 static void* get_shared_paths_misc_info(); |
413 static void* get_shared_paths_misc_info(); |
413 static bool check_shared_paths_misc_info(void* info, int size); |
414 static bool check_shared_paths_misc_info(void* info, int size, bool is_static); |
414 static void exit_with_path_failure(const char* error, const char* message); |
415 static void exit_with_path_failure(const char* error, const char* message); |
415 static char* skip_uri_protocol(char* source); |
416 static char* skip_uri_protocol(char* source); |
416 static void record_result(InstanceKlass* ik, const ClassFileStream* stream, TRAPS); |
417 static void record_result(InstanceKlass* ik, const ClassFileStream* stream, TRAPS); |
417 #endif |
418 #endif |
418 static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name, |
419 static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name, |