harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5488) [classlib][nio] Scatter/gather calls should use OS functionality
Date Thu, 24 Apr 2008 14:19:22 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592077#action_12592077

Tim Ellison commented on HARMONY-5488:

You are welcome to work in this area, but it is quite a big job, so I would expect you'll
need a few patches for portlib changes, natives and Platform changes, and eventually flow
up to the java APIs.

Good luck!

> [classlib][nio] Scatter/gather calls should use OS functionality
> ----------------------------------------------------------------
>                 Key: HARMONY-5488
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5488
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Tim Ellison
>         Attachments: Harmony-5488.diff
> I just noticed that our NIO implementation of scatter / gather calls (e.g. o.a.h.nio.internal.SocketChannelImpl#write(ByteBuffer[],int,int))
are actually copying the data into a single Java heap buffer before calling the OS! :-(  and
FileChannelImpl copies into a single direct byte buffer.
> These need to be reimplemented in terms of the OS scatter/gather capabilities to avoid

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message