RFR: 8254883: ZGC: Make the ZArrayIterator reusable for ZRelocationSetIterators

Per Liden pliden at openjdk.java.net
Sun Oct 18 13:27:23 UTC 2020


On Fri, 16 Oct 2020 10:23:20 GMT, Per Liden <pliden at openjdk.org> wrote:

>> The ZRelocationSetIterators are mostly just duplicate implementations of the ZArrayIterators. With some slight
>> adjustments to ZArrayIteratorImpl we can make that code reusable for ZRelocationSetIteratorImpl.
>> Note that this PR builds/depends on "8254878: Move last piece of ZArray to GrowableArray", which is out for review as a
>> separate PR (https://github.com/openjdk/jdk/pull/694).
>
> Updated to make the iterator take const arrays.

Rebased, folded, and updated ZGranuleMapIterator to also use ZArrayIterator.

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

PR: https://git.openjdk.java.net/jdk/pull/697



More information about the hotspot-gc-dev mailing list