Re: JNI Attach/DetachCurrentThread
"Grzegorz B. Prokopski" <[email protected]> Wed, 11 May 2005 10:10:32 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Organization | Debian http://www.debian.org - The Free Operating System |
| Message-ID | <[email protected]> |
Applied. Thank you! GBP On Fri, 2005-06-05 at 19:18 +0200, Marcel Wiesweg wrote: > Am Donnerstag 14 April 2005 23:02 schrieb Marcel Wiesweg: > > Hi, > > > > the attached patch implements the JNI AttachCurrentThread and > > DetachCurrentThread calls. > > I have tested this shortly without any problems so far with an application > > that accesses the VM from multiple threads. The code is combined from > > _svmf_thread_native_start and JNI_CreateJavaVM, I hope I got everything > > right. > > I just learned that it is valid to call AttachCurrentThread when the thread is > already attached. In that case env shall be set to the current env and JNI_OK > be returned. Attached is an updated patch. > > One thing still missing is handling of the JavaVMAttachArgs (thread name and > thread group). Currently I don't know where to store this information until > the thread_instance object is created in java_lang_VMThread.c. > > Marcel > > > > > > > Marcel > _______________________________________________ > SableVM-devel mailing list > [email protected] > http://sablevm.org/lists/control/listinfo/sablevm-devel -- Grzegorz B. Prokopski <[email protected]> SableVM - Free, LGPL'ed Java VM http://sablevm.org Why SableVM ?!? http://sablevm.org/wiki/Features Debian GNU/Linux - the Free OS http://www.debian.org