Under JNI, it is user responsibility to attach native threads to the VM using attachCurrentThread/detachCurrentThread.
Panama doesn't do this and, as a result, if native code creates a new thread and uses it to call a Java callback, an hard crash occurs.
Panama doesn't do this and, as a result, if native code creates a new thread and uses it to call a Java callback, an hard crash occurs.
- relates to
-
JDK-8230202 Fix failure of foreign/pthread/Threads.java with linkToNative
- Resolved