Closed HugoGGuerrier closed 2 years ago
What happens if you annotate addInt(int x, int y)
with @TruffleBoundary
? I don't think you can make JNI calls on the fast path.
Closing this ticket. Adding the Boundary seems the right solution. If you have any additional information, feel free to reopen.
Description of the issue : When I try to compile my Truffle language implementation with "native-image" I get an error of the "Blocklisted method" type on a custom (myself-defined) native function.
GraalVM environment :
Here is the code of the JNI library :
Here is the code of the Truffle node :
Here is the error message that I get :
Here you can found the Truffle project : https://anonfiles.com/1dc8D0ecy5/GordonTruffle.tar_xz To reproduce this error :
$> mvn clean package
in the project rootThanks.