src/hotspot/share/classfile/classLoader.hpp
changeset 54927 1512d88b24c6
parent 54340 2221f042556d
child 55524 b279ae9843b8
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
   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,