This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stripping libgcj.so.4


Erik Poupaert writes:
 > > Why do you think stripping the excutable will have any effect on
 > > startup times and memory footprint?  It shouldn't.
 > 
 > I was looking at stripping libgcj.so itself, not really at
 > stripping the executable.
 > 
 > Depending on how exactly the loading process goes, and to what
 > extent it is cached (I'm not familiar with the precise details of
 > this process), loading 8 MB instead of 40 MB of libgcj.so could
 > conceivably be beneficial to startup time and memory footprint? Or
 > is there a reason why it hardly matters?

It won't make any difference.  The LOAD sections of the file will be
mapped onto virtual memory and the pages swapped into real RAM as
required.  Debug sections are only read when a debugger (or printing a
stack trace) opens the file.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]