Copying in Java_java_net_SocketOutputStream_socketWrite0

Robert Stupp snazy at snazy.de
Wed Apr 1 11:21:58 UTC 2015


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




More information about the core-libs-dev mailing list