Copying in Java_java_net_SocketOutputStream_socketWrite0
Robert Stupp
snazy at snazy.de
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 snazy.de>:
>
> 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
@snazy
More information about the core-libs-dev
mailing list