]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "runtime: lock mtxpoll in AIX netpollBreak"
authorIan Lance Taylor <iant@golang.org>
Sat, 28 Mar 2020 00:21:57 +0000 (00:21 +0000)
committerIan Lance Taylor <iant@golang.org>
Sat, 28 Mar 2020 05:55:13 +0000 (05:55 +0000)
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>

src/runtime/netpoll_aix.go

index 61becc247ec9cde5a886dda853de22ebb44f91b6..c936fbb70f75a011394523d63708d0b1df7c2d41 100644 (file)
@@ -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.