Re: using the sendfile system call on Darwin

2010-03-05 Thread Michael Allman
I've determined the cause of the Transfers.java test failure. The current implementation of transferTo ignores the count argument. I've attached my sendfile patch. It's very simple. It should resolve this issue while adding sendfile support for Darwin. Hopefully this will pave the way for

Re: using the sendfile system call on Darwin

2010-03-01 Thread Michael Allman
Hello All, Can someone please run the jtreg test target below ("make jdk_nio2" in jdk/test) on a recent build of OpenJDK 7 and let me know if you get the errors I'm getting? I'd like to know before I start digging, and this is a blocker for my sendfile patch. I will gladly field any questions

Re: using the sendfile system call on Darwin

2010-02-22 Thread Michael Allman
On Sun, 21 Feb 2010, Greg Lewis wrote: > G'day Michael, > > On Fri, Feb 19, 2010 at 01:07:35PM -0800, Michael Allman wrote: >> Ok, I have a patch. How do I submit it? > > Sending it to the list for review (either directly or by putting up a URL > people can see it at) is a good first step :). Be

Re: using the sendfile system call on Darwin

2010-02-21 Thread Christos Zoulas
On Feb 21, 4:47pm, gle...@eyesbeyond.com (Greg Lewis) wrote: -- Subject: Re: using the sendfile system call on Darwin | Sending it to the list for review (either directly or by putting up a URL | people can see it at) is a good first step :). That's a great idea. | > > All of th

Re: using the sendfile system call on Darwin

2010-02-21 Thread Greg Lewis
G'day Michael, On Fri, Feb 19, 2010 at 01:07:35PM -0800, Michael Allman wrote: > Ok, I have a patch. How do I submit it? Sending it to the list for review (either directly or by putting up a URL people can see it at) is a good first step :). > On Wed, 27 Jan 2010, Greg Lewis wrote: > > > On Tu

Re: using the sendfile system call on Darwin

2010-02-19 Thread Michael Allman
Ok, I have a patch. How do I submit it? Cheers, Michael On Wed, 27 Jan 2010, Greg Lewis wrote: > On Tue, Jan 26, 2010 at 01:33:06AM -0800, Michael Allman wrote: >> I would like to update jdk/src/solaris/native/sun/nio/ch/FileChannelImpl.c >> so that the Java_sun_nio_ch_FileChannelImpl_transfe

Re: using the sendfile system call on Darwin

2010-01-30 Thread Michael Allman
On Sat, 30 Jan 2010, Luis Neves wrote: > On 01/28/2010 08:14 AM, Michael Allman wrote: > >> I might be able to do the Java side of this effort if a kqueue developer >> does the native side. I don't have the C/C++ programming skills to do the >> latter. > > The GNU Classpath has a kqueue selector

Re: using the sendfile system call on Darwin

2010-01-30 Thread Luis Neves
On 01/28/2010 08:14 AM, Michael Allman wrote: > I might be able to do the Java side of this effort if a kqueue developer > does the native side. I don't have the C/C++ programming skills to do the > latter. The GNU Classpath has a kqueue selector implementation, could that be used? -- Luis Neve

Re: using the sendfile system call on Darwin

2010-01-28 Thread Michael Allman
On Wed, 27 Jan 2010, Greg Lewis wrote: > On Tue, Jan 26, 2010 at 01:33:06AM -0800, Michael Allman wrote: >> I would like to update jdk/src/solaris/native/sun/nio/ch/FileChannelImpl.c >> so that the Java_sun_nio_ch_FileChannelImpl_transferTo0 function calls the >> sendfile system call on Darwin. I

Re: using the sendfile system call on Darwin

2010-01-27 Thread Greg Lewis
On Tue, Jan 26, 2010 at 01:33:06AM -0800, Michael Allman wrote: > I would like to update jdk/src/solaris/native/sun/nio/ch/FileChannelImpl.c > so that the Java_sun_nio_ch_FileChannelImpl_transferTo0 function calls the > sendfile system call on Darwin. I have a few questions: > > 1. Is there a