Skip to content

Commit

Permalink
8294907: Remove unused NativeLookup::dll_load
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes
  • Loading branch information
albertnetymk committed Oct 7, 2022
1 parent 1fda842 commit 118d93b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions src/hotspot/share/prims/nativeLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/prims/nativeLookup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 118d93b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.