aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-03-28 00:21:57 +0000
committerIan Lance Taylor <iant@golang.org>2020-03-28 05:55:13 +0000
commitef220dc53ed204386b30879ff1882b70a7fd602b (patch)
tree39add49e65271958e4b3437ca937172575c0b019
parent9131f08a23bd5923d135df15da30b322748ffa12 (diff)
downloadgo-ef220dc53ed204386b30879ff1882b70a7fd602b.tar.gz
go-ef220dc53ed204386b30879ff1882b70a7fd602b.zip
Revert "runtime: lock mtxpoll in AIX netpollBreak"
This reverts CL 225618. This is causing TestNetpollBreak to fail on AIX more often than not. Change-Id: Ia3c24041ead4b320202f7f5b17a6b286f639a689 Reviewed-on: https://go-review.googlesource.com/c/go/+/226198 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/runtime/netpoll_aix.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/netpoll_aix.go b/src/runtime/netpoll_aix.go
index 61becc247e..c936fbb70f 100644
--- a/src/runtime/netpoll_aix.go
+++ b/src/runtime/netpoll_aix.go
@@ -130,9 +130,7 @@ func netpollarm(pd *pollDesc, mode int) {
// netpollBreak interrupts a poll.
func netpollBreak() {
- lock(&mtxpoll)
netpollwakeup()
- unlock(&mtxpoll)
}
// netpoll checks for ready network connections.