Copying in Java_java_net_SocketOutputStream_socketWrite0

Robert Stupp snazy at
Wed Apr 1 11:24:09 UTC 2015

Is it because of pausing GC otherwise?

> Am 01.04.2015 um 13:21 schrieb Robert Stupp <snazy at>:
> Hi,
> jdk/src/solaris/native/java/net/SocketOutputStream.c always copy data from the given byte[] to a temporary stack/heap buffer.
> Wouldn’t it be sufficient to just use a pointer into the byte[] and directly call NET_Send with that pointer?
>> Robert Stupp
> @snazy

Robert Stupp

More information about the core-libs-dev mailing list