diff options
author | Jamie Liu <jamieliu@google.com> | 2020-08-19 11:50:54 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-19 11:58:59 -0700 |
commit | 3fd4b83fa325de5e4e49c6fdcaa95a1a3db486ed (patch) | |
tree | 28ca2ac8a3ebead11ab66f7dbc8aab8610782a69 /test/syscalls/linux/munmap.cc | |
parent | 41777e90ea6a48eadbfdedc71029a634e1a23b5f (diff) |
Remove use of channels from p9.connState legacy transport.
- Remove sendDone, which currently does nothing whatsoever (errors sent to the
channel are completely unused). Instead, have request handlers log errors
they get from p9.send() inline.
- Replace recvOkay and recvDone with recvMu/recvIdle/recvShutdown. In addition
to being slightly clearer (IMO), this eliminates the p9.connState.service()
goroutine, significantly reducing the overhead involved in passing connection
receive access between goroutines (from buffered chan send/recv + unbuffered
chan send/recv to just a mutex unlock/lock).
PiperOrigin-RevId: 327476755
Diffstat (limited to 'test/syscalls/linux/munmap.cc')
0 files changed, 0 insertions, 0 deletions