7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit

Chris Hegarty chris.hegarty at oracle.com
Sun Jan 9 01:42:57 PST 2011

If I understand the changes correctly, you explicitly state the xxx64 
version of the function (and type) for the Solaris 32 bit compilation, 
but the regular sendfilev for _LP64. Is this a minor optimization? I 
think it would be simpler to just use sendfilev64 for both. Or would 
this be incorrect?


On 01/ 8/11 07:17 PM, Alan Bateman wrote:
> This one came up on this mailing list a few weeks ago. The reason that
> sendfile isn't used is because this code attempts to load
> /usr/lib/libsendfile.so.1 but it should be loading from /usr/lib64 when
> running in 64-bit. There's no reason now to load this library via dlopen
> so I've changed the code so that we link against libsendfile. The webrev
> with the changes is here:
> http://cr.openjdk.java.net/~alanb/7002957/webrev/
> Thanks,
> Alan.

More information about the nio-dev mailing list