]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: decrement netpollWaiters in netpollunblock
authorIan Lance Taylor <iant@golang.org>
Fri, 16 Jun 2023 00:41:19 +0000 (17:41 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 18 Jul 2023 19:53:12 +0000 (19:53 +0000)
commiteaa8419a72215b53576ab5d2def399f9503d1f58
treeca2767487cf535cab9280bfb0fa53a95dfccecd4
parent21ff9be0ebdbe5a96198db6478da8259f1491538
runtime: decrement netpollWaiters in netpollunblock

We used to decrement it in netpollgoready, but that missed
the common case of a descriptor becoming ready due to I/O.
All calls to netpollgoready go through netpollunblock,
so this shouldn't miss any decrements we missed before.

Fixes #60782

Change-Id: Ideefefa1ac96ca38e09fe2dd5d595c5dd7883237
Reviewed-on: https://go-review.googlesource.com/c/go/+/503923
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/runtime/crash_test.go
src/runtime/netpoll.go
src/runtime/testdata/testprognet/waiters.go [new file with mode: 0644]