Mercurial > hg > truffle
comparison src/share/vm/utilities/ostream.cpp @ 4717:11c26bfcf8c7
7091417: recvfrom's 6th input should be of type socklen_t
Summary: Revamp class os's socket method formal args to match socket.h, insert casts in appropriate places, and copyin-copyout int*'s that s/b socklen_t*'s in jvm.cpp.
Reviewed-by: coleenp, dholmes
Contributed-by: erik.gahlin@oracle.com, rickard.backman@oracle.com, nils.loodin@oracle.com, markus.gronlund@oracle.com
author | phh |
---|---|
date | Wed, 21 Dec 2011 15:48:16 -0500 |
parents | f08d439fab8c |
children | f2d2fb93daad d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
4716:4502fd5c7698 | 4717:11c26bfcf8c7 |
---|---|
1019 return os::recv(_socket, buf, (int)len, 0); | 1019 return os::recv(_socket, buf, (int)len, 0); |
1020 } | 1020 } |
1021 | 1021 |
1022 void networkStream::flush() { | 1022 void networkStream::flush() { |
1023 if (size() != 0) { | 1023 if (size() != 0) { |
1024 int result = os::raw_send(_socket, (char *)base(), (int)size(), 0); | 1024 int result = os::raw_send(_socket, (char *)base(), size(), 0); |
1025 assert(result != -1, "connection error"); | 1025 assert(result != -1, "connection error"); |
1026 assert(result == (int)size(), "didn't send enough data"); | 1026 assert(result == (int)size(), "didn't send enough data"); |
1027 } | 1027 } |
1028 reset(); | 1028 reset(); |
1029 } | 1029 } |