Skip to content

Commit

Permalink
hotspot: os_linux: do not use dlinfo and RTLD_DI_LINKMAP on android
Browse files Browse the repository at this point in the history
As they are not available.
  • Loading branch information
Grimler91 committed Apr 1, 2024
1 parent 06429af commit ac9a6de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/os/linux/os_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,11 +1870,12 @@ const char* os::Linux::dll_path(void* lib) {
struct link_map *lmap;
const char* l_path = nullptr;
assert(lib != nullptr, "dll_path parameter must not be null");

#ifndef __ANDROID__
int res_dli = ::dlinfo(lib, RTLD_DI_LINKMAP, &lmap);
if (res_dli == 0) {
l_path = lmap->l_name;
}
#endif
return l_path;
}

Expand Down

0 comments on commit ac9a6de

Please sign in to comment.