Commit 385000b
committed
runtime: fix idle time double-counting bug
This change fixes a bug in the accounting of sched.idleTime. In just the
case where the GC CPU limiter needs up-to-date data, sched.idleTime is
incremented in both the P-idle-time and idle-mark-work paths, but it
should only be incremented in the former case.
Fixes #74627.
Change-Id: If41b03da102d47d25bec48ff750a9da27019b71d
Reviewed-on: https://go-review.googlesource.com/c/go/+/687998
Reviewed-by: Cherry Mui <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>1 parent f506ad2 commit 385000b
1 file changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | 212 | | |
215 | | - | |
216 | 213 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
| |||
470 | 468 | | |
471 | 469 | | |
472 | 470 | | |
473 | | - | |
474 | | - | |
475 | 471 | | |
476 | | - | |
477 | 472 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
481 | 477 | | |
482 | 478 | | |
483 | 479 | | |
| |||
0 commit comments