]> Cypherpunks repositories - gostls13.git/commit
runtime: flush idle time to sched.idleTime on limiter event consumption
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 18 May 2023 17:19:37 +0000 (17:19 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 19 May 2023 16:24:53 +0000 (16:24 +0000)
commit24617a068c55d0ee7ef56d1b9fb951ee1e75f67d
tree0c654f44e7b5b69d8a98769455180ced6ffd6a11
parent78df00dd6f47eb13ff2873fb92223d8b64323d32
runtime: flush idle time to sched.idleTime on limiter event consumption

This was an oversight, which might cause accounted-for idle time to be
lost. Noticed this while working on #60276.

Change-Id: Ic743785d6dc82555e660f2c9b6aaa9dedef56ed8
Reviewed-on: https://go-review.googlesource.com/c/go/+/496117
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgclimit.go