Copying in Java_java_net_SocketOutputStream_socketWrite0

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


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

More information about the core-libs-dev mailing list