You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mark Hindess <ma...@googlemail.com> on 2009/09/23 16:43:04 UTC

Re: [jira] Created: (HARMONY-6328) [classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev

In message <4A...@gmail.com>, Tim Ellison writes:
>
> On 18/Sep/2009 08:58, Regis wrote:
> > I applied the improvements at r816508 and closed the JIRA.
> 
> Great.  I assume it is just me, but I'm running with the IBM VME and see
> a failure in the new test:
> 
> > java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software
> Foundation or its licensors, as applicable.
> java version "1.4.2 subset"
> Harmony Virtual Machine Element (2.3)
> J9 (2.3)
> IBM J9 2.3 Windows XP x86-32  (JIT enabled)
> J9VM - 20060727_07300_lHdSMR
> JIT  - 20060727_1808_r8
> GC   - 20060724_AA
> 
> produces
> 
> (10038) An operation was attempted on something that is not a socket.
> 
> java.net.SocketException: (10038) An operation was attempted on
> something that is not a socket.
> at org.apache.harmony.luni.platform.OSNetworkSystem.writev(Native Method)
> at
> org.apache.harmony.nio.internal.SocketChannelImpl.writevImpl(SocketChannelImp
> l.java:554)
> at
> org.apache.harmony.nio.internal.SocketChannelImpl.write(SocketChannelImpl.jav
> a:530)
> at
> org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest.test_writev(
> SocketChannelTest.java:2673)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 
> I'll try to recreate on DRLVM and open a JIRA if it is still failing for me.

Works for me on DRLVM but it hangs with an IBM VME (since r816508 worked
before that).  It could be an USR1/GC interrupt preventing a hang on drlvm.

> I have written a number of new tests for this code too, but they'll have
> to wait until I get past this one :-)

Excellent.

-Mark.