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.
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.
Logged In: YES
user_id=1215435
Originator: NO
Moved to JIRA: http://jira.codehaus.org/browse/RVM-566