Question about the PrintMethodStatistics report

Francis Rangel francis.rangel at gmail.com
Wed Nov 25 03:32:56 PST 2009


Right. Well, I have to change my final paper then. I'll try the
PrintSystemDictionaryAtExit. Then I can attach the two outputs in the
next email.

Thanks for you help.

Regards.

2009/11/25 Christian Thalinger <Christian.Thalinger at sun.com>:
> 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
>
>



-- 
Att.

Francis Rangel


More information about the hotspot-compiler-dev mailing list