Question about the PrintMethodStatistics report
Christian Thalinger
Christian.Thalinger at Sun.COM
Wed Nov 25 03:19:44 PST 2009
On Wed, 2009-11-25 at 08:44 -0200, Francis Rangel wrote:
> The programs are benchmarks. I'm using some programs of Dacapo, Java
> Grande Forum and Shootout benchmarks to do some tests with the inline
> optimization.
I also used DaCapo.
> If one class is loaded and it has a implementation of a method named
> "A", and there's just this implementation loaded at the moment, this
> method will be a static method, right? Then, after the garbage
> collector cleaned this class, another class with other implementation
> of "A" method is loaded, the method would still be static?
No, they don't become static. But the compiler can treat them specially
if it can prove that the call is currently monomorphic and will make the
assumption invalid if the class hierarchy changes.
> I'm asking because I was wondering that this changes occured when the
> garbage collector cleaned some implementations and the method become
> static. Then, in other execution, the garbage collector didn't clean
> the implementations and the method was considered virtual. Do you
> think this might happening?
The output of PrintMethodStatistics are static statistics about the
methods in the loaded classes.
-- Christian
More information about the hotspot-compiler-dev
mailing list