diff options
author | Michael Pratt <mpratt@google.com> | 2021-02-16 16:47:34 -0500 |
---|---|---|
committer | Michael Pratt <mpratt@google.com> | 2021-04-16 21:03:51 +0000 |
commit | 800fb11efb8a57d8aaf11052e3a9d91138964f21 (patch) | |
tree | 3a35a4055ddf377c0fa54255d0d3754f996d8389 /src/runtime/proc.go | |
parent | f6e7fe2711849e2e57f79b89ee7928b8806618c8 (diff) | |
download | go-800fb11efb8a57d8aaf11052e3a9d91138964f21.tar.gz go-800fb11efb8a57d8aaf11052e3a9d91138964f21.zip |
runtime: remove redudant tryWakeP component
Here tryWakeP can't already be true, so there is no need to combine the
values.
This CL should have no functional changes.
For #43997.
For #44313.
Change-Id: I640c7bb88a5f70c8d22f89f0b5b146b3f60c0136
Reviewed-on: https://go-review.googlesource.com/c/go/+/307911
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r-- | src/runtime/proc.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 3ee5805aef..f479967d41 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -3136,7 +3136,9 @@ top: } if gp == nil && gcBlackenEnabled != 0 { gp = gcController.findRunnableGCWorker(_g_.m.p.ptr()) - tryWakeP = tryWakeP || gp != nil + if gp != nil { + tryWakeP = true + } } if gp == nil { // Check the global runnable queue once in a while to ensure fairness. |