[Integrated] [foreign-memaccess] RFR: JDK-8242495: Restructure implementation of memory segments

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Apr 15 12:08:38 UTC 2020


Changeset: b4e216fd
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
Date:      2020-04-15 12:06:33 +0000
URL:       https://git.openjdk.java.net/panama-foreign/commit/b4e216fd

JDK-8242495: Restructure implementation of memory segments

Reviewed-by: psandoz, jvernee

! src/java.base/share/classes/java/nio/Buffer.java
! src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template
! src/java.base/share/classes/java/nio/MappedByteBuffer.java
! src/java.base/share/classes/jdk/internal/access/JavaNioAccess.java
! src/java.base/share/classes/jdk/internal/access/foreign/UnmapperProxy.java
! src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java
! src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemoryAddress.java
! src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java
+ src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/AbstractMemorySegmentImpl.java
+ src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/HeapMemorySegmentImpl.java
! src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/InternalForeign.java
+ src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/MappedMemorySegmentImpl.java
! src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/MemoryAddressImpl.java
! src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/MemoryScope.java
- src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/MemorySegmentImpl.java
+ src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/NativeMemorySegmentImpl.java
! src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/Utils.java
! test/jdk/java/foreign/TestByteBuffer.java
! test/micro/org/openjdk/bench/jdk/incubator/foreign/LoopOverNonConstant.java
+ test/micro/org/openjdk/bench/jdk/incubator/foreign/LoopOverNonConstantHeap.java
+ test/micro/org/openjdk/bench/jdk/incubator/foreign/LoopOverNonConstantMapped.java
! test/micro/org/openjdk/bench/jdk/incubator/foreign/ParallelSum.java


More information about the panama-dev mailing list