GC statistics (was Re: big project ported)
Tom Tromey
tromey@cygnus.com
Wed Oct 27 09:15:00 GMT 1999
>>>>> "Tom" == Tom Reilly <treilly@allaire.com> writes:
Tom> This is a shot in the dark but would it be possible to reduce the
Tom> work the garbage collector has to do by allocating temporary
Tom> objects that live within the scope of a method call on the stack?
It is possible, but the compiler has to prove that the object can't be
captured. We don't do this kind of analysis right now. I don't think
we even know how much of a win it would be. I'd be interested in
hearing statistics on this. (Actually, I thought I read a paper on
this that said it wasn't a big enough win to bother doing. Now I'm
not sure if I'm just dreaming that.)
T
More information about the Java
mailing list