Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8226250

Calling callback from different native threads causes a VM crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      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.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: