Two quick GC questions [was Re: [REVIVED: PATCH PR42811,4.5 regression] java.lang.ExceptionInInitializerError in ecj1]
Boehm, Hans
hans.boehm@hp.com
Fri Feb 19 03:22:00 GMT 2010
> From: Bryce McKinlay
>
> In theory, there could also be a performance advantage to
> having a single library because a smart linker / linker
> script could optimize internal calls to things like
> GC_malloc, speeding up the allocation path by avoiding PLT
> indirection.
>
> Bryce
>
Also in theory, in this case, you should be able to have your cake and eat it, too. The idea was that we should be able to inline the fast path that looks only at a small collection of the thread-local free-lists, but then calls into the GC library on the slow path. GC7.x generally has the infratsructure for that. But it's not clear anyone has the time to do this. Last time I looked into this, the current gcj allocation path is still much slower than one would like, so this should help.
Hans
More information about the Java
mailing list