mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8186072: dll_build_name returns true even if file is missing
Split dll_build_name into two functions and consolidate to os.cpp file. Reviewed-by: stuefe, dholmes
This commit is contained in:
parent
b885046273
commit
b07974fd9f
10 changed files with 96 additions and 299 deletions
|
@ -1066,7 +1066,7 @@ void ClassLoader::load_zip_library() {
|
|||
char path[JVM_MAXPATHLEN];
|
||||
char ebuf[1024];
|
||||
void* handle = NULL;
|
||||
if (os::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip")) {
|
||||
if (os::dll_locate_lib(path, sizeof(path), Arguments::get_dll_dir(), "zip")) {
|
||||
handle = os::dll_load(path, ebuf, sizeof ebuf);
|
||||
}
|
||||
if (handle == NULL) {
|
||||
|
@ -1104,7 +1104,7 @@ void ClassLoader::load_jimage_library() {
|
|||
char path[JVM_MAXPATHLEN];
|
||||
char ebuf[1024];
|
||||
void* handle = NULL;
|
||||
if (os::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "jimage")) {
|
||||
if (os::dll_locate_lib(path, sizeof(path), Arguments::get_dll_dir(), "jimage")) {
|
||||
handle = os::dll_load(path, ebuf, sizeof ebuf);
|
||||
}
|
||||
if (handle == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue