This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: GC statistics (was Re: big project ported)



Jeff Sturm <jsturm@sigma6.com> writes:

> My code is greatly affected by the frequency of allocation, not the
> overall size.

This is a shot in the dark but would it be possible to reduce the work
the garbage collector has to do by allocating temporary objects that
live within the scope of a method call on the stack?  It'd be
interesting to see some statistics on what percentage of objects
created in a typical Java program are temporary objects.  I'd suspect
its pretty high.

Do any VM's do this?

--
Tom Reilly
Allaire Corp.
http://www.allaire.com

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