Menu

#100 JNI: Implement AttachCurrentThread/DetachCurrentThread

closed
nobody
JNI (6)
5
2012-09-21
2004-06-16
No

We need to implement the following JNI Invocation API Functions: AttachCurrentThread, DetachCurrentThread, and AttachCurrentThreadAsDaemon.

These features in the JNI Invocation API will require some modification of our m:n threading model. Perhaps it would be best handled by allowing one to add and remove virtual processors at run time, with the extra virtual processors representing attached native threads.

I'm creating this item as part of closing bug # 3410.

Discussion

  • Steven Augart

    Steven Augart - 2004-09-13

    I have implemented AttachCurrentThread's simplest case, which is where it's called from a thread that's already attached to the VM, and responds by acting like GetEnv() does -- this is enough to get Eclipse 3.0 to work.

    I also fixed a bug where AttachCurrentThread was bogusly claiming success.

     
  • Dave Grove

    Dave Grove - 2008-07-06

    Logged In: YES
    user_id=1215435
    Originator: NO

    Moved to JIRA: http://jira.codehaus.org/browse/RVM-566

     

Log in to post a comment.