-
Enhancement
-
Resolution: Fixed
-
P3
-
24
It is expected that many classes will use MemorySegments to back internal states. MemorySegment already has a method `long
mismatch(MemorySegment other)` that can be used to determine content equality for MemorySegments and thus provides a useful feature when implementing `Object:equals` methods.
It is hereby proposed to introduce a new JDK-internal method `int contentHash(MemorySegment segment, long from, long to)` that computes a hash value for the provided range.
An opportunity is to use vectorized operations to improve performance.
mismatch(MemorySegment other)` that can be used to determine content equality for MemorySegments and thus provides a useful feature when implementing `Object:equals` methods.
It is hereby proposed to introduce a new JDK-internal method `int contentHash(MemorySegment segment, long from, long to)` that computes a hash value for the provided range.
An opportunity is to use vectorized operations to improve performance.
- relates to
-
JDK-8345107 C2 SuperWord: implement polynomial reductions (for hashing)
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/a1473ec3
-
Review(master) openjdk/jdk/22364