This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] speed up java.util.Random
- From: Andrew Haley <aph at redhat dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: java-patches at gcc dot gnu dot org
- Date: Fri, 25 Nov 2005 13:29:00 +0000
- Subject: Re: [PATCH] speed up java.util.Random
- References: <43863EA3.3080803@lu.unisi.ch>
Paolo Bonzini writes:
> 2005-11-24 Paolo Bonzini <bonzini@gnu.org>
>
> * java/util/Random.java: Rewrite, inlining the next(int) method
> and synchronization blocks into the callers.
>
I'm unhappy about this patch.
gcj is capable of inlining methods that are declared final or private.
Rather than inlining by hand, it makes far more sense to extract the
common code and compile with -O3.
The problem is that the gcj configury is (for me) hard to understand.
I'll leve it to Tom Tromey to suggest how we enable the use of -O3 on
this file.
Andrew.