]> Cypherpunks repositories - gostls13.git/commit
runtime: lock mtxpoll in AIX netpollBreak
authorIan Lance Taylor <iant@golang.org>
Thu, 26 Mar 2020 16:13:11 +0000 (09:13 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 27 Mar 2020 20:29:31 +0000 (20:29 +0000)
commit78a45d8b4592dbd38057a2e9af83c9cf9d62ddc9
tree7acdcae36d2e85d5a3de6e49a0af4fbcf8f8f83d
parentf5558bb2f580ed40374a98e8db6fd58ae79f6e1d
runtime: lock mtxpoll in AIX netpollBreak

netpollBreak calls netpollwakeup, and netpollwakeup expects the mtxpoll
lock to be held, so that it has exclusive access to pendingUpdates.
Not acquiring the lock was a mistake in CL 171824. Fortunately it
rarely matters in practice.

Change-Id: I32962ec2575c846ef3d6a91a4d821b2ff02d983c
Reviewed-on: https://go-review.googlesource.com/c/go/+/225618
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/netpoll_aix.go