This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/11780] Method.invoke() is slow
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 29 Mar 2006 18:59:34 -0000
- Subject: [Bug libgcj/11780] Method.invoke() is slow
- References: <bug-11780-6651@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from mckinlay at redhat dot com 2006-03-29 18:59 -------
With a public call, as in the current test case, it is "only" about 2.5X slower
than HotSpot for me:
$ ./a.out
public call: 499 ms
private call: 7344 ms
$ java RefTest3
public call: 182 ms
private call: 808 ms
Private calls show a larger difference due to the requirement for an
accessibility check, which involves stack inspection.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11780