Skip to content

Commit 800fb11

Browse files
committed
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 <[email protected]> Run-TryBot: Michael Pratt <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent f6e7fe2 commit 800fb11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/proc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3136,7 +3136,9 @@ top:
31363136
}
31373137
if gp == nil && gcBlackenEnabled != 0 {
31383138
gp = gcController.findRunnableGCWorker(_g_.m.p.ptr())
3139-
tryWakeP = tryWakeP || gp != nil
3139+
if gp != nil {
3140+
tryWakeP = true
3141+
}
31403142
}
31413143
if gp == nil {
31423144
// Check the global runnable queue once in a while to ensure fairness.

0 commit comments

Comments
 (0)