Re: [Ikvm-developers] IKVM and JNI
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2009-09-23 09:46:08
|
Hi, >From this description it looks more likely to me that your JNI code is wrong than that there is anything wrong with IKVM's JNI implementation (which is not intended to be compatible with the Sun JRE implementation, but with the JNI specification). Sun's JNI implementation has additional "robustness" features for code that uses an incorrect calling convention, but that is not an official part of JNI. Regards, Jeroen > -----Original Message----- > From: Дейзи Чейн [mailto:dai...@ma...] > Sent: Wednesday, September 23, 2009 10:36 AM > To: ikv...@li... > Subject: [Ikvm-developers] IKVM and JNI > > Hi Jeroen, > thanks for quick answer. Your suggestion regarding -Xcheck:jni looks > very bright, because we DID use it for some time - the problem was that > JRE5.0 worked fine with our dll, but JRE6.0 (updates 0-7) crached with > hotspot log. But with -Xcheck:jni option it worked fine (Sun's bugs > database said, that dlls compiled with Borland compiler don't save and > restore on exit some FPU control word and recommended using this > option). > I didn't find now that exact bug, but these ones seem very similar: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6539718 > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6487931 > > Fortunately, they admitted this as JVM fault, and since JRE 6.0 update > 10 the problem disappeared! > Hope this helps - maybe there is something like that in IKVM code? > > >Hi, > >This is not exactly helpful. I can assure you that the native library > is not loaded/unloaded for every call. > >Have you tried running your code on Sun's Java with the -Xcheck:jni > option? > >Regards, > >Jeroen > > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your developing skills, take BlackBerry mobile applications to market > and stay ahead of the curve. Join us from November 9-12, 2009. > Register now! http://p.sf.net/sfu/devconf > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |