emeryberger / Hoard

The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.
http://www.hoard.org
Apache License 2.0
1.1k stars 128 forks source link

libhoard.dll fails to load in a JNI application. #71

Open bdarwin opened 2 years ago

bdarwin commented 2 years ago

H, I am trying to take advantage of Hoard in a JNI based c++ application(Windows10). I built 64bit hoard and when I try to load libhoard.dll it crashes with below error.

java.lang.UnsatisfiedLinkError: <PATH>libhoard.dll: A dynamic link library (DLL) initialization routine failed
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)

Crash log:

 A fatal error has been detected by the Java Runtime Environment:

  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa4e631960, pid=76672, tid=0x000000000000cecc

 JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
 Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode windows-amd64 compressed oops)
 Problematic frame:
 C  0x00007ffa4e631960

Is this even possible?