using the sendfile system call on Darwin

Michael Allman msa at
Mon Mar 1 10:33:52 PST 2010

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 on running the tests.



On Mon, 22 Feb 2010, Michael Allman wrote:

> 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 :).
> Before I send it, I have run into a pertinent issue.
> I am testing the jdk using the jdk/test/Makefile target jdk_nio2.  Using
> the virgin BSD port (i.e. without my patch), I get a whole boatload of
> failures that look like
> FAILURE: FileChannel, offset 1, length 7
> Transfers$Failure: Incorrect transfer length: 65533 (expected 7)
> 	at Transfers.testTo(
> 	at Transfers.main(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at
> com.sun.javatest.regtest.MainWrapper$
> 	at
> Can someone else try running this test and report back their results?
> I ran it on Mac OS X v. 10.6.2.
> Cheers,
> Michael

More information about the bsd-port-dev mailing list