equal
deleted
inserted
replaced
45 }; |
45 }; |
46 |
46 |
47 static char* get_class_path_attr(const char* jar_path, char* manifest, jint manifest_size); |
47 static char* get_class_path_attr(const char* jar_path, char* manifest, jint manifest_size); |
48 static void setup_app_search_path(); // Only when -Xshare:dump |
48 static void setup_app_search_path(); // Only when -Xshare:dump |
49 static void process_module_table(ModuleEntryTable* met, TRAPS); |
49 static void process_module_table(ModuleEntryTable* met, TRAPS); |
50 static SharedPathsMiscInfo* shared_paths_misc_info() { |
|
51 return (SharedPathsMiscInfo*)_shared_paths_misc_info; |
|
52 } |
|
53 // index of first app JAR in shared classpath entry table |
50 // index of first app JAR in shared classpath entry table |
54 static jshort _app_class_paths_start_index; |
51 static jshort _app_class_paths_start_index; |
55 // index of first modular JAR in shared modulepath entry table |
52 // index of first modular JAR in shared modulepath entry table |
56 static jshort _app_module_paths_start_index; |
53 static jshort _app_module_paths_start_index; |
57 // the largest path index being used during CDS dump time |
54 // the largest path index being used during CDS dump time |
81 static char* read_raw_manifest(ClassPathEntry* entry, jint *manifest_size, TRAPS) { |
78 static char* read_raw_manifest(ClassPathEntry* entry, jint *manifest_size, TRAPS) { |
82 // Do not remove new-line continuations, so we can easily pass it as an argument to |
79 // Do not remove new-line continuations, so we can easily pass it as an argument to |
83 // java.util.jar.Manifest.getManifest() at run-time. |
80 // java.util.jar.Manifest.getManifest() at run-time. |
84 return read_manifest(entry, manifest_size, false, THREAD); |
81 return read_manifest(entry, manifest_size, false, THREAD); |
85 } |
82 } |
86 |
|
87 static void finalize_shared_paths_misc_info(); |
|
88 |
83 |
89 static jshort app_class_paths_start_index() { return _app_class_paths_start_index; } |
84 static jshort app_class_paths_start_index() { return _app_class_paths_start_index; } |
90 |
85 |
91 static jshort app_module_paths_start_index() { return _app_module_paths_start_index; } |
86 static jshort app_module_paths_start_index() { return _app_module_paths_start_index; } |
92 |
87 |