RFR: 8204550: NMT: RegionIterator does not need to keep _current_size

Gerard Ziemski gziemski at openjdk.org
Mon Mar 6 16:39:58 UTC 2023


On Thu, 2 Mar 2023 13:20:06 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> Hi,
> 
> This is just a small cleanup where an unnecessary class variable is removed.
> 
> Quoting the issue:
> 
>>class RegionIteretor does not need to keep _current_size, since that one can be calculated from the three remaining points (start, end of reserved size and current search pointer). 
> 
> Please consider, thanks.

Nice cleanup, looks good to me.

-------------

Marked as reviewed by gziemski (Committer).

PR: https://git.openjdk.org/jdk/pull/12828


More information about the hotspot-runtime-dev mailing list