This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mixing BC and CNI in the same executable


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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]