RFR: 8149793: DirtyCardQueueSet::apply_closure_to_completed_buffer_helper isn't helpful
Bengt Rutisson
bengt.rutisson at oracle.com
Mon Feb 15 07:30:52 UTC 2016
Hi Kim,
On 2016-02-15 08:24, Kim Barrett wrote:
> Please review this small cleanup, merging a non-helpful "helper" into
> its only caller.
>
> CR:
> https://bugs.openjdk.java.net/browse/JDK-8149793
>
> Webrev:
> http://cr.openjdk.java.net/~kbarrett/8149793/webrev.00/
Looks good.
Good cleanup as it is. If you want to take it further I would personally
prefer to remove the default values for the parameters:
135 bool apply_closure_to_completed_buffer(CardTableEntryClosure* cl,
136 uint worker_i = 0,
137 int stop_at = 0,
138 bool during_pause = false);
Both callers of apply_closure_to_completed_buffer() pass values for
worker_ and stop_at. And the "during_pause" is used to assert the state
of the call, so it is a bit odd that callers don't have to explicitly
pass this state.
Just a thought. I'm fine with the change as you proposed it too since it
is a clear improvement.
Thanks,
Bengt
>
> Testing:
> JPRT
>
More information about the hotspot-gc-dev
mailing list