[jdk17] RFR: 8269335: Unable to load svml library [v5]

David Holmes dholmes at openjdk.java.net
Fri Jun 25 04:23:01 UTC 2021


On Fri, 25 Jun 2021 02:39:41 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:

>> The OpenJDK 17 early access build from jdk.java.net fails to load svml library. 
>> We need to give full svml library path to dll_load call for the load to succeed.,
>
> Sandhya Viswanathan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   windows path

src/hotspot/cpu/x86/stubGenerator_x86_64.cpp line 7009:

> 7007: #else
> 7008:     int ret = jio_snprintf(dll_path, sizeof(dll_path), "%s%slib", Arguments::get_java_home(), os::file_separator());
> 7009: #endif

There is a platform independent way to do this. Here is the example of how libverify is loaded by the JVM:

// Load verify dll
  char buffer[JVM_MAXPATHLEN];
  char ebuf[1024];
  if (!os::dll_locate_lib(buffer, sizeof(buffer), Arguments::get_dll_dir(), "verify"))
    return NULL; // Caller will throw VerifyError

  void *lib_handle = os::dll_load(buffer, ebuf, sizeof(ebuf));

-------------

PR: https://git.openjdk.java.net/jdk17/pull/143


More information about the hotspot-runtime-dev mailing list