Skip to content

Commit 118d93b

Browse files
committed
8294907: Remove unused NativeLookup::dll_load
Reviewed-by: dholmes
1 parent 1fda842 commit 118d93b

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/hotspot/share/prims/nativeLookup.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -355,24 +355,6 @@ address NativeLookup::lookup_entry(const methodHandle& method, TRAPS) {
355355
return entry; // NULL indicates not found
356356
}
357357

358-
void* NativeLookup::dll_load(const methodHandle& method) {
359-
if (method->has_native_function()) {
360-
361-
address current_entry = method->native_function();
362-
363-
char dll_name[JVM_MAXPATHLEN];
364-
dll_name[0] = '\0';
365-
int offset;
366-
bool ret = os::dll_address_to_library_name(current_entry, dll_name, sizeof(dll_name), &offset);
367-
if (ret && dll_name[0] != '\0') {
368-
char ebuf[32];
369-
return os::dll_load(dll_name, ebuf, sizeof(ebuf));
370-
}
371-
}
372-
373-
return NULL;
374-
}
375-
376358
// Check if there are any JVM TI prefixes which have been applied to the native method name.
377359
// If any are found, remove them before attempting the look up of the
378360
// native implementation again.

src/hotspot/share/prims/nativeLookup.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class NativeLookup : AllStatic {
3939
static address lookup_entry(const methodHandle& method, TRAPS);
4040
static address lookup_entry_prefixed(const methodHandle& method, TRAPS);
4141

42-
static void* dll_load(const methodHandle& method);
4342
static const char* compute_complete_jni_name(const char* pure_name, const char* long_name, int args_size, bool os_style);
4443
public:
4544
// JNI name computation

0 commit comments

Comments
 (0)