Unused GC causes

Per Liden per.liden at oracle.com
Thu Sep 24 08:42:47 UTC 2015


Hi Jesper,

On 2015-09-23 21:33, Jesper Wilhelmsson wrote:
> Hi,
>
> I found that there are a few GC causes that are unused:
>
> _allocation_profiler
> _tenured_generation_full
> _cms_generation_full
> _old_generation_expanded_on_last_scavenge
> _old_generation_too_full_to_scavenge
>
> A few of these are used in asserts and similar, but none of them are
> ever used to set the cause for a GC.
>
> Is there a reason to why these exists but are unused, is it a bug that
> they are unused, or should we just remove them?

I suspect they have been used at some point, but for various reasons 
aren't relevant any more. If they are unused I don't see a problem with 
removing them.

/Per

>
> Thanks,
> /Jesper



More information about the hotspot-gc-dev mailing list