-
Bug
-
Resolution: Fixed
-
P4
-
repo-panama
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8312902 | 21.0.1 | Maurizio Cimadamore | P4 | Resolved | Fixed | b04 |
JDK-8311900 | 21 | Maurizio Cimadamore | P4 | Resolved | Fixed | b32 |
The copy overloads:
static void copy(MemorySegment srcSegment, long srcOffset,
MemorySegment dstSegment, long dstOffset, long bytes)
And
static void copy(MemorySegment srcSegment, ValueLayout srcElementLayout, long srcOffset,
MemorySegment dstSegment, ValueLayout dstElementLayout, long dstOffset,
long elementCount)
Refer to 'this segment' in their javadoc:
If the source segment overlaps with *this segment*...
This should the 'the destination segment' instead. Since both of these methods are static, there is no 'this segment'.
static void copy(MemorySegment srcSegment, long srcOffset,
MemorySegment dstSegment, long dstOffset, long bytes)
And
static void copy(MemorySegment srcSegment, ValueLayout srcElementLayout, long srcOffset,
MemorySegment dstSegment, ValueLayout dstElementLayout, long dstOffset,
long elementCount)
Refer to 'this segment' in their javadoc:
If the source segment overlaps with *this segment*...
This should the 'the destination segment' instead. Since both of these methods are static, there is no 'this segment'.
- backported by
-
JDK-8311900 Minor doc issue in MemorySegment::copy
- Resolved
-
JDK-8312902 Minor doc issue in MemorySegment::copy
- Resolved
- links to
-
Commit openjdk/jdk21/ca108041
-
Commit openjdk/jdk/6569b252
-
Review openjdk/jdk21/109
-
Review openjdk/jdk/14813
(1 links to)