[OpenJDK 2D-Dev] JNI crashes in FontManager code

Roman Kennke roman.kennke at aicas.com
Fri Oct 17 07:52:38 UTC 2008


> 	Fixing the bad JNI code in the font manager code. Two issues:
> 	  o The JNIEnv is unique to the thread. It cannot be saved by one thread and
> 	    reused by another. Use GetEnv instead.
> 	  o The 'font2D' jobject needs to be converted into a global reference because
> 	    its lifetime exceeds the lifetime of a native method call.

I've stumbled across both issues too, haven't had the time to fix it
though. Would be nice to see this patch go in.


Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-48
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt

More information about the 2d-dev mailing list