< prev index next >

src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java

Print this page

        

*** 25,34 **** --- 25,35 ---- package sun.nio.ch; import java.io.FileDescriptor; import java.io.IOException; + import java.lang.ref.Cleaner; import java.nio.ByteBuffer; import java.nio.MappedByteBuffer; import java.nio.channels.ClosedByInterruptException; import java.nio.channels.ClosedChannelException; import java.nio.channels.FileChannel;
*** 45,55 **** import java.util.List; import jdk.internal.misc.JavaIOFileDescriptorAccess; import jdk.internal.misc.JavaNioAccess; import jdk.internal.misc.SharedSecrets; - import jdk.internal.ref.Cleaner; import sun.security.action.GetPropertyAction; public class FileChannelImpl extends FileChannel { --- 46,55 ----
*** 843,853 **** } } } private static void unmap(MappedByteBuffer bb) { ! Cleaner cl = ((DirectBuffer)bb).cleaner(); if (cl != null) cl.clean(); } private static final int MAP_RO = 0; --- 843,853 ---- } } } private static void unmap(MappedByteBuffer bb) { ! Cleaner.Cleanable cl = ((DirectBuffer)bb).cleaner(); if (cl != null) cl.clean(); } private static final int MAP_RO = 0;
< prev index next >