Symbol visibility for gcj

David Daney ddaney@avtrex.com
Fri Mar 23 18:47:00 GMT 2007


Andrew Haley wrote:
> This changes the symbol export rules for gcj-built DSOs.  We no longer
> output symbols for:
> 
> private static methods
> private static fields
> private classes
> vtables (except java.lang.Class)
> class$$ fields
> 
> This reduces the number of symbols in libgcj.so from 87509 to 66209, a
> saving of 20%.

Does that really matter?  I suppose it might reduce the number of pages 
that are faulted in when the dynamic linker is working because the 
interesting symbols would be spread across fewer pages.

How does your change affect the number of relocations in libgcj.so or 
the values returned by size?

David Daney



More information about the Java-patches mailing list