aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2023-05-18 15:51:57 +0000
committerMichael Knyszek <mknyszek@google.com>2023-05-23 19:24:33 +0000
commit6f13d0bfe42115d1d5452bee0bb7648d968beeb4 (patch)
treedd50d8bea8397895dddbb29614a62b907773afe4 /src/encoding
parent5124371c1c7d6e2f5c8ebf821fdd07ea71d564c7 (diff)
downloadgo-6f13d0bfe42115d1d5452bee0bb7648d968beeb4.tar.xz
runtime: fix usage of stale "now" value for netpolling Ms
Currently pidleget gets passed "now" from before the M goes into netpoll, resulting in incorrect accounting of idle CPU time. lastpoll is also stored with a stale "now": the mistake was added in the same CL it was added for pidleget. Recompute "now" after returning from netpoll. Also, start tracking idle time on js/wasm at all. Credit to Rhys Hiltner for the test case. Fixes #60276. Change-Id: I5dd677471f74c915dfcf3d01621430876c3ff307 Reviewed-on: https://go-review.googlesource.com/c/go/+/496183 Reviewed-by: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Knyszek <mknyszek@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions