< prev index next >

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

Print this page
@@ -90,11 +90,11 @@
       * Used by I/O operations to make a buffer's resource scope non-closeable
       * (for the duration of the I/O operation) by acquiring a new resource
       * scope handle. Null is returned if the buffer has no scope, or
       * acquiring is not required to guarantee safety.
       */
-     Scope.Handle acquireScope(Buffer buffer, boolean async);
+     Runnable acquireScope(Buffer buffer, boolean async);
  
      /**
       * Used by {@code jdk.internal.foreign.MappedMemorySegmentImpl} and byte buffer var handle views.
       */
      void force(FileDescriptor fd, long address, boolean isSync, long offset, long size);
< prev index next >