Multiple copies of same code
Christian Thalinger
Christian.Thalinger at Sun.COM
Mon Dec 14 00:40:40 PST 2009
On Tue, 2009-11-24 at 22:32 -0800, Ian Rogers wrote:
> Hi Ulf,
>
> I don't know if it useful but 2 years ago I had a go at optimizing GNU
> Classpath's NIO charset implementation, in particular for byte
> charsets like ASCII [1]. The approach I wanted was for small methods
> that would inline easily and final fields that could be chased through
> to avoid runtime indirections. In MRP [2] (source is Eclipse Public
> License) I kick the compiler to inline some of the core routines
> further [3].
>
> Regards,
> Ian Rogers
> (now at Azul Systems in Mountain View)
>
> [1] http://cvs.savannah.gnu.org/viewvc/classpath/gnu/java/nio/charset/?root=classpath
> [2] http://mrp.codehaus.org/
> [3] http://git.codehaus.org/gitweb.cgi?p=mrp.git;a=blob;f=tools/asm-tasks/src/org/jikesrvm/tools/asm/AnnotationAdder.java;hb=HEAD
Ulf,
did you look at this code? I think it might be more worth to factorize
your code like this than to dig around in assembly code and try to fix
it there.
-- Christian
More information about the hotspot-compiler-dev
mailing list