提交 9e1846ca 编写于 作者: M mchung

6769976: (fc) FileChannelImpl.isAMappedBufferField not used

Summary: Remove the FileChannelImpl.isAMappedBufferField field
Reviewed-by: alanb
上级 c752fad0
...@@ -60,9 +60,6 @@ public class FileChannelImpl ...@@ -60,9 +60,6 @@ public class FileChannelImpl
// Memory allocation size for mapping buffers // Memory allocation size for mapping buffers
private static final long allocationGranularity; private static final long allocationGranularity;
// Cached field for MappedByteBuffer.isAMappedBuffer
private static final Field isAMappedBufferField;
// File descriptor // File descriptor
private final FileDescriptor fd; private final FileDescriptor fd;
...@@ -1315,8 +1312,6 @@ public class FileChannelImpl ...@@ -1315,8 +1312,6 @@ public class FileChannelImpl
Util.load(); Util.load();
allocationGranularity = initIDs(); allocationGranularity = initIDs();
nd = new FileDispatcher(); nd = new FileDispatcher();
isAMappedBufferField = Reflect.lookupField("java.nio.MappedByteBuffer",
"isAMappedBuffer");
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册