From: Uwe Plonus on
Roedy Green schrieb:
> On Wed, 24 Feb 2010 18:41:33 +0100, Uwe Plonus <spam(a)sw4j.de> wrote,
> quoted or indirectly quoted someone who said :
>
>> It looks like you are using native code and this causes the VM to crash.
>> In your thread dump at the beginning it says "_thread_in_native" and in
>> the end there is a C before the address which says native code.
>
> Does that mean HIS native code or ANY native code? The JVM is full of
> native code.

Native code which is part of the program running. It is marked with C in
the stack. The VM code is marked with V or v.

Uwe
From: Jack on
On Feb 24, 11:18 am, Uwe Plonus <s...(a)sw4j.de> wrote:
> Roedy Green schrieb:
>
> > On Wed, 24 Feb 2010 18:41:33 +0100, Uwe Plonus <s...(a)sw4j.de> wrote,
> > quoted or indirectly quoted someone who said :
>
> >> It looks like you are using native code and this causes the VM to crash.
> >> In your thread dump at the beginning it says "_thread_in_native" and in
> >> the end there is a C before the address which says native code.
>
> > Does that mean HIS native code or ANY native code?  The JVM is full of
> > native code.
>
> Native code which is part of the program running. It is marked with C in
> the stack. The VM code is marked with V or v.
>
> Uwe

Yes. I use native code.
Thanks.
From: Roedy Green on
On Wed, 24 Feb 2010 22:28:57 -0800 (PST), Jack <junw2000(a)gmail.com>
wrote, quoted or indirectly quoted someone who said :

>
>Yes. I use native code.

tracking down those kind of problems is quite difficult.

Here are two possible techniques.

Let's presume your native code is written in C++.

1. Write test harnesses in C++ for the bulk of your JNI code. Debug
that code using pure C++ techniques with no Java involved. Only once
it is working hook it in with JNI glue.

2. Replace your JNI code with dummy Java methods. Add your JNI code a
bit at a time and see when it starts to explode.

see http://mindprod.com/jgloss/jni.html for details.
--
Roedy Green Canadian Mind Products
http://mindprod.com

The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
~ Douglas Adams (born: 1952-03-11 died: 2001-05-11 at age: 49)