mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8202750: Reduce the use of get_canonical_path() in CDS
Reviewed-by: minqi, iklam
This commit is contained in:
parent
ea5bf45c6f
commit
5f308291a0
3 changed files with 51 additions and 45 deletions
|
@ -255,6 +255,7 @@ class ClassLoader: AllStatic {
|
|||
static int _libzip_loaded; // used to sync loading zip.
|
||||
static void release_load_zip_library();
|
||||
static inline void load_zip_library_if_needed();
|
||||
static jzfile* open_zip_file(const char* canonical_path, char** error_msg, JavaThread* thread);
|
||||
|
||||
public:
|
||||
static ClassPathEntry* create_class_path_entry(const char *path, const struct stat* st,
|
||||
|
@ -264,7 +265,7 @@ class ClassLoader: AllStatic {
|
|||
|
||||
// Canonicalizes path names, so strcmp will work properly. This is mainly
|
||||
// to avoid confusing the zip library
|
||||
static bool get_canonical_path(const char* orig, char* out, int len);
|
||||
static char* get_canonical_path(const char* orig, Thread* thread);
|
||||
static const char* file_name_for_class_name(const char* class_name,
|
||||
int class_name_len);
|
||||
static PackageEntry* get_package_entry(Symbol* pkg_name, ClassLoaderData* loader_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue