[foreign-memaccess+abi] RFR: Fix bug in hashCode after JDK-8291473 [v2]
Jorn Vernee
jvernee at openjdk.org
Wed Aug 10 10:36:54 UTC 2022
On Tue, 9 Aug 2022 21:28:04 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> There is an asymmetry between MemorySegment::equals and MemorySegment::hashCode after the unification of memory segment and memory address.
>>
>> Both methods should only take into account unsafe offset and base (e.g. two segments are equals if they point to same memory location).
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>
> Add hashcode test
👍
-------------
Marked as reviewed by jvernee (Committer).
PR: https://git.openjdk.org/panama-foreign/pull/701
More information about the panama-dev
mailing list