Symbol visibility for gcj

Andrew Haley aph@redhat.com
Fri Mar 23 18:52:00 GMT 2007


David Daney writes:
 > 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.

Right, and the size of the file, etc, etc.

 > How does your change affect the number of relocations in libgcj.so

There's a small reduction, less than 1%.

 > or the values returned by size?

Sorry?

Andrew.



More information about the Java-patches mailing list