[jdk17] RFR: 8269335: Unable to load svml library
Paul Sandoz
psandoz at openjdk.java.net
Thu Jun 24 23:05:05 UTC 2021
On Thu, 24 Jun 2021 21:05: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.,
Unsure how this slipped through when we tested, but i think we need an explicit test. The test can execute a Java process with logging enabled and examine its log output (since the loading of SVML is logged). Searching the test code base should find some examples to copy.
src/hotspot/cpu/x86/stubGenerator_x86_64.cpp line 7005:
> 7003: char ebuf[1024];
> 7004: char dll_name[JVM_MAXPATHLEN];
> 7005: int ret = jio_snprintf(dll_name, sizeof(dll_name), "%s%slib%s" JNI_LIB_PREFIX "svml" JNI_LIB_SUFFIX,
Can we use `os::dll_locate_lib`?
-------------
PR: https://git.openjdk.java.net/jdk17/pull/143
More information about the hotspot-compiler-dev
mailing list