Copying in Java_java_net_SocketOutputStream_socketWrite0

Alan Bateman Alan.Bateman at oracle.com
Wed Apr 1 11:48:46 UTC 2015


On 01/04/2015 12:24, Robert Stupp wrote:
> Is it because of pausing GC otherwise?
>
Yes, GC and also that a Socket write is a potentially blocking 
operation. Some VMs do have a way of pinning objects in the heap (beyond 
JNI critical sections) but it is not assumed here.

If you do socket I/O with direct buffers then it doesn't need a 
temporary area of memory for the I/O.

-Alan.





More information about the core-libs-dev mailing list