diff options
| author | Carlos Amedee <carlos@golang.org> | 2025-04-22 13:42:26 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-04-22 15:49:52 -0700 |
| commit | 489917fc400ee25d34dfb06306da3b3cef126963 (patch) | |
| tree | e614728671703f9d0bcc552980add922acc17852 /src/runtime/runtime2.go | |
| parent | 83b53527fa738ac3364a5f7e4921f2e81f69584e (diff) | |
| download | go-489917fc400ee25d34dfb06306da3b3cef126963.tar.xz | |
Revert "runtime: only poll network from one P at a time in findRunnable"
This reverts commit 352dd2d932c1c1c6dbc3e112fcdfface07d4fffb.
Reason for revert: cockroachdb benchmark failing. Likely due to CL 564197.
For #73474
Change-Id: Id5d83cd8bb8fe9ee7fddb8dc01f1a01f2d40154e
Reviewed-on: https://go-review.googlesource.com/c/go/+/667336
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index f7371c450b..05cf345baf 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -756,10 +756,9 @@ type p struct { } type schedt struct { - goidgen atomic.Uint64 - lastpoll atomic.Int64 // time of last network poll, 0 if currently polling - pollUntil atomic.Int64 // time to which current poll is sleeping - pollingNet atomic.Int32 // 1 if some P doing non-blocking network poll + goidgen atomic.Uint64 + lastpoll atomic.Int64 // time of last network poll, 0 if currently polling + pollUntil atomic.Int64 // time to which current poll is sleeping lock mutex |
