OSDN Git Service

Use writev() for DDMS packets.
authorAndy McFadden <fadden@android.com>
Fri, 18 Dec 2009 00:21:36 +0000 (16:21 -0800)
committerAndy McFadden <fadden@android.com>
Fri, 18 Dec 2009 00:27:15 +0000 (16:27 -0800)
commit5442d46fe1d0645d786a289c1143e830a6699b14
tree04319556833d88f170d4acfc723ce350456c355b
parente5dd7ddd47ef17bc8c2f5a8c8ccbc4471c21dc5e
Use writev() for DDMS packets.

The code was using the JDWP "expanding buffer" stuff, which is fine for
4-byte status messages but will be terrible for buffers of tracing and
profiling data.  Now we construct the header in a separate buffer.
vm/jdwp/JdwpAdb.c
vm/jdwp/JdwpEvent.c
vm/jdwp/JdwpPriv.h
vm/jdwp/JdwpSocket.c