RFR: 8297729: Replace GrowableArray in ComputeMoveOrder with hash table [v3]
Jorn Vernee
jvernee at openjdk.org
Mon Dec 5 17:48:18 UTC 2022
On Mon, 5 Dec 2022 17:05:38 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> This is referencing the global `operator==` defined for `VMStorage` here: https://github.com/openjdk/jdk/blob/6a7a0db587446160e77c9ac225669e5a0c9bc638/src/hotspot/share/prims/vmstorage.hpp#L92
>>
>> If you like, I can define a wrapper similar to the `hash` function for this as well.
>
> Actually, now that you mention it. I think we need another `equals` function that ignores the `segment_mask_or_size` field just like the `hash` function does.
>
> I will update the PR.
I've added a specialized `equals` function that ignores the `segment_mask_or_size` field, and changed the template parameter to use that.
-------------
PR: https://git.openjdk.org/jdk/pull/11392
More information about the hotspot-dev
mailing list