Patch: RFA: Fix PR libgcj/21906

Andrew Haley aph@redhat.com
Wed Jun 15 19:05:00 GMT 2005


Tom Tromey writes:
 > In PR 21906, the problem is that a method pointer is NULL.  This
 > causes a hang.
 > 
 > This fix works by ensuring that we never see a NULL in a method table
 > entry.  Instead all abstract methods refer to _Jv_ThrowAbstractMethodError.
 > 
 > Tested on x86 FC2 including jacks.  Ok?
 > 
 > Tom
 > 
 > Index: gcc/java/ChangeLog
 > from  Tom Tromey  <tromey@redhat.com>
 > 
 > 	PR libgcj/21906:
 > 	* class.c (make_method_value): Use soft_abstractmethod_node for
 > 	abstract method.
 > 	* java-tree.h (soft_abstractmethod_node): New define.
 > 	(JTI_SOFT_ABSTRACTMETHOD_NODE): New enum constant.
 > 	* decl.c (java_init_decl_processing): Initialize
 > 	soft_abstractmethod_node.

Seems reasonable.

Andrew.



More information about the Java-patches mailing list