< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaNioAccess.java

Print this page

 75      * Used by {@code jdk.internal.foreign.Utils}.
 76      */
 77     long getBufferAddress(ByteBuffer bb);
 78 
 79     /**
 80      * Used by {@code jdk.internal.foreign.Utils}.
 81      */
 82     UnmapperProxy unmapper(ByteBuffer bb);
 83 
 84     /**
 85      * Used by {@code jdk.internal.foreign.AbstractMemorySegmentImpl} and byte buffer var handle views.
 86      */
 87     MemorySegmentProxy bufferSegment(Buffer buffer);
 88 
 89     /**
 90      * Used by I/O operations to make a buffer's resource scope non-closeable
 91      * (for the duration of the I/O operation) by acquiring a new resource
 92      * scope handle. Null is returned if the buffer has no scope, or
 93      * acquiring is not required to guarantee safety.
 94      */
 95     Scope.Handle acquireScope(Buffer buffer, boolean async);
 96 
 97     /**
 98      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
 99      */
100     void force(FileDescriptor fd, long address, boolean isSync, long offset, long size);
101 
102     /**
103      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
104      */
105     void load(long address, boolean isSync, long size);
106 
107     /**
108      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl}.
109      */
110     void unload(long address, boolean isSync, long size);
111 
112     /**
113      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
114      */
115     boolean isLoaded(long address, boolean isSync, long size);

 75      * Used by {@code jdk.internal.foreign.Utils}.
 76      */
 77     long getBufferAddress(ByteBuffer bb);
 78 
 79     /**
 80      * Used by {@code jdk.internal.foreign.Utils}.
 81      */
 82     UnmapperProxy unmapper(ByteBuffer bb);
 83 
 84     /**
 85      * Used by {@code jdk.internal.foreign.AbstractMemorySegmentImpl} and byte buffer var handle views.
 86      */
 87     MemorySegmentProxy bufferSegment(Buffer buffer);
 88 
 89     /**
 90      * Used by I/O operations to make a buffer's resource scope non-closeable
 91      * (for the duration of the I/O operation) by acquiring a new resource
 92      * scope handle. Null is returned if the buffer has no scope, or
 93      * acquiring is not required to guarantee safety.
 94      */
 95     Runnable acquireScope(Buffer buffer, boolean async);
 96 
 97     /**
 98      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
 99      */
100     void force(FileDescriptor fd, long address, boolean isSync, long offset, long size);
101 
102     /**
103      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
104      */
105     void load(long address, boolean isSync, long size);
106 
107     /**
108      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl}.
109      */
110     void unload(long address, boolean isSync, long size);
111 
112     /**
113      * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
114      */
115     boolean isLoaded(long address, boolean isSync, long size);
< prev index next >