src/hotspot/share/classfile/classLoaderExt.hpp
changeset 47991 a474466c4fdb
parent 47216 71c04702a3d5
child 48138 78b2ecdd3c4b
equal deleted inserted replaced
47915:d4af6b80aec3 47991:a474466c4fdb
    48 
    48 
    49     bool should_verify(int classpath_index) {
    49     bool should_verify(int classpath_index) {
    50       return false;
    50       return false;
    51     }
    51     }
    52 
    52 
    53     InstanceKlass* record_result(Symbol* class_name,
    53     void record_result(Symbol* class_name,
    54                                  ClassPathEntry* e,
    54                        const s2 classpath_index,
    55                                  const s2 classpath_index,
    55                        InstanceKlass* result, TRAPS) {
    56                                  InstanceKlass* result, TRAPS) {
       
    57       if (ClassLoader::add_package(_file_name, classpath_index, THREAD)) {
       
    58 #if INCLUDE_CDS
    56 #if INCLUDE_CDS
    59         if (DumpSharedSpaces) {
    57       assert(DumpSharedSpaces, "Sanity");
    60           oop loader = result->class_loader();
    58       oop loader = result->class_loader();
    61           s2 classloader_type = ClassLoader::BOOT_LOADER;
    59       s2 classloader_type = ClassLoader::BOOT_LOADER;
    62           if (SystemDictionary::is_system_class_loader(loader)) {
    60       if (SystemDictionary::is_system_class_loader(loader)) {
    63             classloader_type = ClassLoader::APP_LOADER;
    61         classloader_type = ClassLoader::APP_LOADER;
    64             ClassLoaderExt::set_has_app_classes();
    62         ClassLoaderExt::set_has_app_classes();
    65           } else if (SystemDictionary::is_platform_class_loader(loader)) {
    63       } else if (SystemDictionary::is_platform_class_loader(loader)) {
    66             classloader_type = ClassLoader::PLATFORM_LOADER;
    64         classloader_type = ClassLoader::PLATFORM_LOADER;
    67             ClassLoaderExt::set_has_platform_classes();
    65         ClassLoaderExt::set_has_platform_classes();
    68           }
    66       }
    69           result->set_shared_classpath_index(classpath_index);
    67       result->set_shared_classpath_index(classpath_index);
    70           result->set_class_loader_type(classloader_type);
    68       result->set_class_loader_type(classloader_type);
    71         }
       
    72 #endif
    69 #endif
    73         return result;
       
    74       } else {
       
    75         return NULL;
       
    76       }
       
    77     }
    70     }
    78   };
    71   };
    79 
    72 
    80 
       
    81   static void add_class_path_entry(const char* path, bool check_for_duplicates,
       
    82                                    ClassPathEntry* new_entry) {
       
    83     ClassLoader::add_to_list(new_entry);
       
    84   }
       
    85   static void append_boot_classpath(ClassPathEntry* new_entry) {
    73   static void append_boot_classpath(ClassPathEntry* new_entry) {
    86     ClassLoader::add_to_list(new_entry);
    74     ClassLoader::add_to_boot_append_entries(new_entry);
    87   }
    75   }
    88   static void setup_search_paths() {}
    76   static void setup_search_paths() {}
    89   static bool is_boot_classpath(int classpath_index) {
    77   static bool is_boot_classpath(int classpath_index) {
    90    return true;
    78    return true;
    91  }
    79  }
    94   static void set_has_app_classes() {}
    82   static void set_has_app_classes() {}
    95   static void set_has_platform_classes() {}
    83   static void set_has_platform_classes() {}
    96   static char* read_manifest(ClassPathEntry* entry, jint *manifest_size, TRAPS) {
    84   static char* read_manifest(ClassPathEntry* entry, jint *manifest_size, TRAPS) {
    97     return NULL;
    85     return NULL;
    98   }
    86   }
       
    87   static void process_jar_manifest(ClassPathEntry* entry, bool check_for_duplicates) {}
    99 #endif
    88 #endif
   100 };
    89 };
   101 
    90 
   102 #endif // SHARE_VM_CLASSFILE_CLASSLOADEREXT_HPP
    91 #endif // SHARE_VM_CLASSFILE_CLASSLOADEREXT_HPP