405 static int num_boot_classpath_entries();
406
407 static ClassPathEntry* get_next_boot_classpath_entry(ClassPathEntry* e);
408
409 // Helper function used by CDS code to get the number of app classpath
410 // entries during shared classpath setup time.
411 static int num_app_classpath_entries();
412
413 // Helper function used by CDS code to get the number of module path
414 // entries during shared classpath setup time.
415 static int num_module_path_entries() {
416 assert(DumpSharedSpaces, "Should only be called at CDS dump time");
417 int num_entries = 0;
418 ClassPathEntry* e= ClassLoader::_module_path_entries;
419 while (e != NULL) {
420 num_entries ++;
421 e = e->next();
422 }
423 return num_entries;
424 }
425 static void check_shared_classpath(const char *path);
426 static void finalize_shared_paths_misc_info();
427 static int get_shared_paths_misc_info_size();
428 static void* get_shared_paths_misc_info();
429 static bool check_shared_paths_misc_info(void* info, int size);
430 static int get_module_paths_misc_info_size();
431 static void* get_module_paths_misc_info();
432 static void exit_with_path_failure(const char* error, const char* message);
433 static char* skip_uri_protocol(char* source);
434 static void record_result(InstanceKlass* ik, const ClassFileStream* stream, TRAPS);
435 #endif
436 static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name,
437 const char* file_name, jlong &size);
438
439 static void trace_class_path(const char* msg, const char* name = NULL);
440
441 // VM monitoring and management support
442 static jlong classloader_time_ms();
443 static jlong class_method_total_size();
444 static jlong class_init_count();
445 static jlong class_init_time_ms();
|
405 static int num_boot_classpath_entries();
406
407 static ClassPathEntry* get_next_boot_classpath_entry(ClassPathEntry* e);
408
409 // Helper function used by CDS code to get the number of app classpath
410 // entries during shared classpath setup time.
411 static int num_app_classpath_entries();
412
413 // Helper function used by CDS code to get the number of module path
414 // entries during shared classpath setup time.
415 static int num_module_path_entries() {
416 assert(DumpSharedSpaces, "Should only be called at CDS dump time");
417 int num_entries = 0;
418 ClassPathEntry* e= ClassLoader::_module_path_entries;
419 while (e != NULL) {
420 num_entries ++;
421 e = e->next();
422 }
423 return num_entries;
424 }
425 static void finalize_shared_paths_misc_info();
426 static int get_shared_paths_misc_info_size();
427 static void* get_shared_paths_misc_info();
428 static bool check_shared_paths_misc_info(void* info, int size);
429 static int get_module_paths_misc_info_size();
430 static void* get_module_paths_misc_info();
431 static void exit_with_path_failure(const char* error, const char* message);
432 static char* skip_uri_protocol(char* source);
433 static void record_result(InstanceKlass* ik, const ClassFileStream* stream, TRAPS);
434 #endif
435 static JImageLocationRef jimage_find_resource(JImageFile* jf, const char* module_name,
436 const char* file_name, jlong &size);
437
438 static void trace_class_path(const char* msg, const char* name = NULL);
439
440 // VM monitoring and management support
441 static jlong classloader_time_ms();
442 static jlong class_method_total_size();
443 static jlong class_init_count();
444 static jlong class_init_time_ms();
|