< prev index next >

src/hotspot/share/classfile/classLoaderExt.hpp

Print this page

 41 
 42   static char* get_class_path_attr(const char* jar_path, char* manifest, jint manifest_size);
 43   static void setup_app_search_path(JavaThread* current); // Only when -Xshare:dump
 44   static void process_module_table(JavaThread* current, ModuleEntryTable* met);
 45   // index of first app JAR in shared classpath entry table
 46   static jshort _app_class_paths_start_index;
 47   // index of first modular JAR in shared modulepath entry table
 48   static jshort _app_module_paths_start_index;
 49   // the largest path index being used during CDS dump time
 50   static jshort _max_used_path_index;
 51   // number of module paths
 52   static int _num_module_paths;
 53 
 54   static bool _has_app_classes;
 55   static bool _has_platform_classes;
 56   static bool _has_non_jar_in_classpath;
 57 
 58   static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size, bool clean_text);
 59   static bool has_jar_suffix(const char* filename);
 60 







 61 public:
 62   static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry);
 63 
 64   // Called by JVMTI code to add boot classpath
 65   static void append_boot_classpath(ClassPathEntry* new_entry);
 66 
 67   static void setup_search_paths(JavaThread* current);
 68   static void setup_module_paths(JavaThread* current);
 69   static void extract_jar_files_from_path(const char* path, GrowableArray<const char*>* module_paths);
 70   static int compare_module_names(const char** p1, const char** p2);
 71 
 72   static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size) {
 73     // Remove all the new-line continuations (which wrap long lines at 72 characters, see
 74     // http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest), so
 75     // that the manifest is easier to parse.
 76     return read_manifest(current, entry, manifest_size, true);
 77   }
 78   static char* read_raw_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size) {
 79     // Do not remove new-line continuations, so we can easily pass it as an argument to
 80     // java.util.jar.Manifest.getManifest() at run-time.

110   }
111 
112   static bool has_platform_or_app_classes() {
113     return _has_app_classes || _has_platform_classes;
114   }
115 
116   static bool has_non_jar_in_classpath() {
117     return _has_non_jar_in_classpath;
118   }
119 
120   static void record_result(const s2 classpath_index, InstanceKlass* result, bool redefined);
121   static void set_has_app_classes() {
122     _has_app_classes = true;
123   }
124   static void set_has_platform_classes() {
125     _has_platform_classes = true;
126   }
127   static void set_has_non_jar_in_classpath() {
128     _has_non_jar_in_classpath = true;
129   }







130 #endif // INCLUDE_CDS
131 };
132 
133 #endif // SHARE_CLASSFILE_CLASSLOADEREXT_HPP

 41 
 42   static char* get_class_path_attr(const char* jar_path, char* manifest, jint manifest_size);
 43   static void setup_app_search_path(JavaThread* current); // Only when -Xshare:dump
 44   static void process_module_table(JavaThread* current, ModuleEntryTable* met);
 45   // index of first app JAR in shared classpath entry table
 46   static jshort _app_class_paths_start_index;
 47   // index of first modular JAR in shared modulepath entry table
 48   static jshort _app_module_paths_start_index;
 49   // the largest path index being used during CDS dump time
 50   static jshort _max_used_path_index;
 51   // number of module paths
 52   static int _num_module_paths;
 53 
 54   static bool _has_app_classes;
 55   static bool _has_platform_classes;
 56   static bool _has_non_jar_in_classpath;
 57 
 58   static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size, bool clean_text);
 59   static bool has_jar_suffix(const char* filename);
 60 
 61   // All classes whose path_index is within
 62   //     [_app_class_exclusion_start_path_index ... _app_module_paths_start_index)
 63   // are excluded from the archive. See -XX:CacheOnlyClassesIn.
 64   static int  _app_class_exclusion_start_path_index;
 65 
 66   static ClassPathEntry* get_class_path_entry(s2 classpath_index);
 67   static void check_invalid_classpath_index(s2 classpath_index, InstanceKlass* ik);
 68 public:
 69   static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry);
 70 
 71   // Called by JVMTI code to add boot classpath
 72   static void append_boot_classpath(ClassPathEntry* new_entry);
 73 
 74   static void setup_search_paths(JavaThread* current);
 75   static void setup_module_paths(JavaThread* current);
 76   static void extract_jar_files_from_path(const char* path, GrowableArray<const char*>* module_paths);
 77   static int compare_module_names(const char** p1, const char** p2);
 78 
 79   static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size) {
 80     // Remove all the new-line continuations (which wrap long lines at 72 characters, see
 81     // http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest), so
 82     // that the manifest is easier to parse.
 83     return read_manifest(current, entry, manifest_size, true);
 84   }
 85   static char* read_raw_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size) {
 86     // Do not remove new-line continuations, so we can easily pass it as an argument to
 87     // java.util.jar.Manifest.getManifest() at run-time.

117   }
118 
119   static bool has_platform_or_app_classes() {
120     return _has_app_classes || _has_platform_classes;
121   }
122 
123   static bool has_non_jar_in_classpath() {
124     return _has_non_jar_in_classpath;
125   }
126 
127   static void record_result(const s2 classpath_index, InstanceKlass* result, bool redefined);
128   static void set_has_app_classes() {
129     _has_app_classes = true;
130   }
131   static void set_has_platform_classes() {
132     _has_platform_classes = true;
133   }
134   static void set_has_non_jar_in_classpath() {
135     _has_non_jar_in_classpath = true;
136   }
137 
138   // -XX:CacheOnlyClassesIn=
139   static bool should_be_excluded(InstanceKlass* k);
140   static void set_app_class_exclusion_start_path_index(int i) {
141     _app_class_exclusion_start_path_index = i;
142   }
143 
144 #endif // INCLUDE_CDS
145 };
146 
147 #endif // SHARE_CLASSFILE_CLASSLOADEREXT_HPP
< prev index next >