RFR: 8135078: Refactor InCSetState::is_in_cset_or_humongous

Jesper Wilhelmsson jesper.wilhelmsson at oracle.com
Tue Oct 6 16:29:27 UTC 2015


Looks good!
/Jesper

Den 6/10/15 kl. 17:43, skrev Erik Helin:
> Hi all,
>
> this tiny patch slightly refactors the function
> InCSetState::is_in_cset_or_humongous. The new version decouples the
> function from the enum representation, this in turn enables future
> extensions of the enum wihout affecting the logic. The reason for
> InCSetState::is_in_cset_or_humongous was implemented as
> `_value != NotInCSet` was for performance reasons, but careful
> performance measurements shows that no regressions are introduced with
> this patch.
>
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8135078/webrev.00/
>
> Testing:
> - JPRT
>
> Performance testing:
> - SPECjbb2005 with a fixed load to get as stable runs as possible. No
>    regression in total gc time nor in object copy time.
> - Perf Aurora test run, no regressions
>
> Thanks,
> Erik
>



More information about the hotspot-gc-dev mailing list