8294907: Remove unused NativeLookup::dll_load

Reviewed-by: dholmes
This commit is contained in:
Albert Mingkun Yang 2022-10-07 08:55:12 +00:00
parent 1fda8421b9
commit 118d93b3dc
2 changed files with 0 additions and 19 deletions
src/hotspot/share/prims

@ -355,24 +355,6 @@ address NativeLookup::lookup_entry(const methodHandle& method, TRAPS) {
return entry; // NULL indicates not found
}
void* NativeLookup::dll_load(const methodHandle& method) {
if (method->has_native_function()) {
address current_entry = method->native_function();
char dll_name[JVM_MAXPATHLEN];
dll_name[0] = '\0';
int offset;
bool ret = os::dll_address_to_library_name(current_entry, dll_name, sizeof(dll_name), &offset);
if (ret && dll_name[0] != '\0') {
char ebuf[32];
return os::dll_load(dll_name, ebuf, sizeof(ebuf));
}
}
return NULL;
}
// Check if there are any JVM TI prefixes which have been applied to the native method name.
// If any are found, remove them before attempting the look up of the
// native implementation again.

@ -39,7 +39,6 @@ class NativeLookup : AllStatic {
static address lookup_entry(const methodHandle& method, TRAPS);
static address lookup_entry_prefixed(const methodHandle& method, TRAPS);
static void* dll_load(const methodHandle& method);
static const char* compute_complete_jni_name(const char* pure_name, const char* long_name, int args_size, bool os_style);
public:
// JNI name computation