This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Mixing BC and CNI in the same executable
- From: Andrew Haley <aph at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 26 Jan 2010 19:52:16 +0000
- Subject: Re: Mixing BC and CNI in the same executable
- References: <20100123003835.GA13203@jmah3.christs.cam.ac.uk> <7230133d1001230132g4d15ac8bm7e594f0e6ef4c547@mail.gmail.com> <20100123145106.4ea45678@ernest-2.christs.cam.ac.uk> <4B5B7B0D.9000400@redhat.com> <20100125130912.07dba104@ernest-2.christs.cam.ac.uk> <4B5DA042.9000100@redhat.com> <20100125154547.655ba534@ernest-2.christs.cam.ac.uk> <4B5EF4CB.5030502@redhat.com> <20100126170657.12c1fcd6@ernest-2.christs.cam.ac.uk> <4B5F2456.5010301@redhat.com>
On 01/26/2010 05:20 PM, Andrew Haley wrote:
> On 01/26/2010 05:06 PM, Stephen Kell wrote:
>>> It's a combination of bugs. Firstly, there's a bug in libgcj when a
>>> needed class is not found in an executable: it causes a crash when
>>> trying to report the problem. Fixed thusly:
>>
>> Thanks very much for this! My program does indeed now run as it's
>> supposed to (i.e. back to coding...).
Committed.
Andrew.
2010-01-26 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (registerClosure): Make sure closures is
non NULL.
Index: java/lang/natClass.cc
===================================================================
--- java/lang/natClass.cc (revision 156043)
+++ java/lang/natClass.cc (working copy)
@@ -689,10 +689,13 @@
_Jv_ClosureList::registerClosure (jclass klass, void *ptr)
{
_Jv_ClosureList **closures = klass->engine->get_closure_list (klass);
+ if (closures)
+ {
this->ptr = ptr;
this->next = *closures;
*closures = this;
}
+}
#endif