RFR: 8255234: ZGC: Bulk allocate forwarding data structures [v2]
Albert Mingkun Yang
ayang at openjdk.java.net
Fri Oct 23 08:58:40 UTC 2020
On Fri, 23 Oct 2020 07:48:22 GMT, Per Liden <pliden at openjdk.org> wrote:
>> src/hotspot/share/gc/z/zRelocationSet.cpp line 70:
>>
>>> 68:
>>> 69: void ZRelocationSet::reset() {
>>> 70: _nforwardings = 0;
>>
>> This is not needed, right? `_nforwardings` will be properly reset in `populate`.
>
> Yes, this is strictly not needed. But even if the backing memory is still there, the relocation set is conceptually reset here. For example, RelocationSetIterator should not return any forwardings after this point.
True; the set is conceptually empty after this.
-------------
PR: https://git.openjdk.java.net/jdk/pull/804
More information about the hotspot-gc-dev
mailing list