harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [jira] Created: (HARMONY-6328) [classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev
Date Mon, 28 Sep 2009 10:13:19 GMT
On 28/Sep/2009 06:26, Regis wrote:
> It's a little sad it will break VME. I thought two ways to fix this:
> 
> 1. add new parameter long[] to writev, which contains native address of
> direct buffer, but the parameters will be a little long.
> 
> 2. wrap native address to Long which can be filled in Object[], but this
> may need reflections to get each value of Long.
> 
> Both of them are not so good....

I think we should just raise a bug report to fix the VME.

The exception raised was confusing though,

java.net.SocketException: (10038) An operation was attempted on
something that is not a socket.

Perhaps we do need some more error checking in the native code to cover
these cases so it reports an internal error or something.  It might also
be worth refactoring the code so that the majority is shared, with just
the OS calls moved out to the platform specific directories.

Regards,
Tim

Mime
View raw message