This is the mail archive of the java@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: Missing methods in libgcj_bc.so


Bryce McKinlay wrote:
> On Mon, Mar 31, 2008 at 11:59 PM, Andrew Haley <aph@redhat.com> wrote:
>> I've discovered some missing methods in libgcj_bc.so.
>>
>> These are:
>>
>> _Jv_MonitorExit
>> _Jv_JNI_PopSystemFrame
>> _Jv_RegisterResource
>>
>> I did this by inspecting a BC-compiled application that mysteriously
>> held a DT_NEEDED to libgcj, not just libgcj_bc.
>>
>> So, how was the list of symbols in libgcj_bc created, and how many
>> more symbols might be missing?  I could just add these three, but I'm
>> thinking a more systematic approach might be a good idea.
> 
> As I recall, the symbol list was generated ad-hoc by grepping the
> front end source. If these methods are missing then its obviously a
> serious mistake!

OK, thanks.  Fixed thusly.

Andrew.


2008-04-16  Andrew Haley  <aph@littlepinkcloud.com>

	* libgcj_bc.c: (_Jv_LookupInterfaceMethod, _Jv_MonitorExit,
	_Jv_RegisterResource, _Jv_JNI_PopSystemFrame): Add.

Index: libgcj_bc.c
===================================================================
--- libgcj_bc.c (revision 134356)
+++ libgcj_bc.c (working copy)
@@ -32,11 +32,14 @@
 void _Jv_CheckCast () {}
 void _Jv_InitClass () {}
 void _Jv_IsInstanceOf () {}
+void _Jv_LookupInterfaceMethod () {}
 void _Jv_LookupInterfaceMethodIdx () {}
 void _Jv_MonitorEnter () {}
+void _Jv_MonitorExit () {}
 void _Jv_NewMultiArray () {}
 void _Jv_NewObjectArray () {}
 void _Jv_NewPrimArray () {}
+void _Jv_RegisterResource () {}
 void _Jv_ResolvePoolEntry () {}
 void _Jv_Throw () {}
 void _Jv_ThrowAbstractMethodError () {}
@@ -66,6 +69,7 @@
 void _Jv_GetJNIEnvNewFrame () {}
 void _Jv_LookupJNIMethod () {}
 void _Jv_UnwrapJNIweakReference () {}
+void _Jv_JNI_PopSystemFrame () {}
 
 
 /* Checked divide (-fuse-divide-subroutine).  */


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