< prev index next >
src/java.base/unix/classes/sun/nio/ch/FileDispatcherImpl.java
Print this page
rev 53271 : 8216981: Per thread IO statistics in JFR
*** 43,67 ****
FileDispatcherImpl() {
}
int read(FileDescriptor fd, long address, int len) throws IOException {
! return read0(fd, address, len);
}
int pread(FileDescriptor fd, long address, int len, long position)
throws IOException
{
return pread0(fd, address, len, position);
}
long readv(FileDescriptor fd, long address, int len) throws IOException {
! return readv0(fd, address, len);
}
int write(FileDescriptor fd, long address, int len) throws IOException {
! return write0(fd, address, len);
}
int pwrite(FileDescriptor fd, long address, int len, long position)
throws IOException
{
--- 43,67 ----
FileDispatcherImpl() {
}
int read(FileDescriptor fd, long address, int len) throws IOException {
! return read0(fd, address, len, false);
}
int pread(FileDescriptor fd, long address, int len, long position)
throws IOException
{
return pread0(fd, address, len, position);
}
long readv(FileDescriptor fd, long address, int len) throws IOException {
! return readv0(fd, address, len, false);
}
int write(FileDescriptor fd, long address, int len) throws IOException {
! return write0(fd, address, len, false);
}
int pwrite(FileDescriptor fd, long address, int len, long position)
throws IOException
{
*** 69,79 ****
}
long writev(FileDescriptor fd, long address, int len)
throws IOException
{
! return writev0(fd, address, len);
}
long seek(FileDescriptor fd, long offset) throws IOException {
return seek0(fd, offset);
}
--- 69,79 ----
}
long writev(FileDescriptor fd, long address, int len)
throws IOException
{
! return writev0(fd, address, len, false);
}
long seek(FileDescriptor fd, long offset) throws IOException {
return seek0(fd, offset);
}
*** 133,158 ****
return result;
}
// -- Native methods --
! static native int read0(FileDescriptor fd, long address, int len)
throws IOException;
static native int pread0(FileDescriptor fd, long address, int len,
long position) throws IOException;
! static native long readv0(FileDescriptor fd, long address, int len)
throws IOException;
! static native int write0(FileDescriptor fd, long address, int len)
throws IOException;
static native int pwrite0(FileDescriptor fd, long address, int len,
long position) throws IOException;
! static native long writev0(FileDescriptor fd, long address, int len)
throws IOException;
static native int force0(FileDescriptor fd, boolean metaData)
throws IOException;
--- 133,158 ----
return result;
}
// -- Native methods --
! static native int read0(FileDescriptor fd, long address, int len, boolean socket)
throws IOException;
static native int pread0(FileDescriptor fd, long address, int len,
long position) throws IOException;
! static native long readv0(FileDescriptor fd, long address, int len, boolean socket)
throws IOException;
! static native int write0(FileDescriptor fd, long address, int len, boolean socket)
throws IOException;
static native int pwrite0(FileDescriptor fd, long address, int len,
long position) throws IOException;
! static native long writev0(FileDescriptor fd, long address, int len, boolean socket)
throws IOException;
static native int force0(FileDescriptor fd, boolean metaData)
throws IOException;
< prev index next >