mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8338591: Improve performance of MemorySegment::copy
Reviewed-by: mcimadamore
This commit is contained in:
parent
cb9f5c5791
commit
6be927260a
4 changed files with 293 additions and 13 deletions
|
@ -1570,8 +1570,9 @@ public sealed interface MemorySegment permits AbstractMemorySegmentImpl {
|
|||
@ForceInline
|
||||
static void copy(MemorySegment srcSegment, long srcOffset,
|
||||
MemorySegment dstSegment, long dstOffset, long bytes) {
|
||||
copy(srcSegment, ValueLayout.JAVA_BYTE, srcOffset,
|
||||
dstSegment, ValueLayout.JAVA_BYTE, dstOffset,
|
||||
|
||||
AbstractMemorySegmentImpl.copy((AbstractMemorySegmentImpl) srcSegment, srcOffset,
|
||||
(AbstractMemorySegmentImpl) dstSegment, dstOffset,
|
||||
bytes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue