sendfile is broken on solaris with -d64?

Alan Bateman Alan.Bateman at oracle.com
Fri Nov 26 07:41:21 PST 2010


Tigran Mkrtchyan wrote:
>
>
> Dear NIO gurus,
>
> we observed some weird behavior with sendfile on a solaris box with 
> 1.6.0_22 and 1.7.0
>
> we notice, that with -d64 FileChannel.transferTo() method uses memory 
> mapped file instead of
> using systems sendfile call.
Thanks for the bug report. The 64-bit libsendfile is in /lib/64 whereas 
this code was originally written to only attempt to load it from 
/usr/lib. Also with a 64-bit library the symbol is sendfilev64. I'm 
kinda surprised it hasn't been noticed before. I'll create a bug for this.

-Alan


More information about the nio-dev mailing list