On Wed, 13 Oct 2021 00:00:22 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

> but it caused hotspot to segfault in LoadLibrary (!) in os::dll_load when I 
> tried to load the library.

I tried compiling the binutils-based hsdis earlier as well, but on WSL instead 
of cygwin (using the `mingw-w64` package), and ran into the same issue. It kept 
segfaulting when loading the library.

My guess was that it is a problem caused by mixing libraries that are compiled 
with different toolchains, as the JDK itself is compiled with MSVC.

AFAIK binutils can only be built with mingw (based on my earlier experiments), 
but LLVM can be built with MSVC as well, so maybe the regular MSVC toolchain 
could be used to build the llvm-based hsdis.

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

PR: https://git.openjdk.java.net/jdk/pull/5920

Reply via email to