This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/15001] Using JNI with interpreter and interface methods yields SIGSEGV
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Dec 2004 05:47:04 -0000
- Subject: [Bug libgcj/15001] Using JNI with interpreter and interface methods yields SIGSEGV
- References: <20040418092953.15001.thhal@mailblocks.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mckinlay at redhat dot com 2004-12-10 05:47 -------
meth->index for an interface method should contain the IDT dispatch index for
that method, which allows us to use fast interface dispatch
(_Jv_LookupInterfaceMethodIdx) for Method.invoke() calls. Unfortunately, this
index is useless without also knowing which interface the method belongs to, and
as Tom points out, we do not currently have a way to get from a JNI jMethodID to
the interface, hence this PR.
Perhaps a special flag for interface methods would be the best fix in the short
term, until we can somehow fix JNI to give us a class/interface from a jMethodID.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15001