loss of cause??

Mikael Gerdin mikael.gerdin at oracle.com
Thu Oct 10 14:40:05 UTC 2013


Richard,

On 10/10/2013 04:35 PM, Richard Warburton wrote:
> Hi,
>
>     We chose to not add the GC cause to all gc log records since we felt
>     that was too large a change for 7.
>     The previous behavior was completely inconsistent, all the different
>     GC:s had different ways of signaling that a full gc was caused by a
>     Systm.gc() call and System.gc() was the only gc cause which was logged.
>
>     In 8 we decided to enable gc cause printing for all gc log records.
>
>
> Thanks for explaining the decision.  Does this mean that every (most)
> PrintGCDetails related GC Log record type will change by default in Java
> 8 in order to print the cause?

Every (most) is a good observation :)

The CMS concurrent mark/sweep records don't have that information since 
they are not triggered by a specific gc cause.

I don't remember all the corner cases off the top of my head, but have a 
go at a JDK 8 early access build if you want to check it out for yourself.

https://jdk8.java.net/download.html

/Mikael

>
> regards,
>
>    Dr. Richard Warburton
>
> http://insightfullogic.com
> @RichardWarburto <http://twitter.com/richardwarburto>




More information about the hotspot-gc-dev mailing list