diff options
| author | Michael Pratt <mpratt@google.com> | 2022-07-25 15:58:23 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2022-08-12 01:53:11 +0000 |
| commit | b04e4637dba254e5bda132753a91532f8e32e4b9 (patch) | |
| tree | 44d6c75a7300fcf1f54cc800164e128d5a5cc355 /src/runtime/runtime2.go | |
| parent | 09cc9bac724896cac02b0da8b259febddde52759 (diff) | |
| download | go-b04e4637dba254e5bda132753a91532f8e32e4b9.tar.xz | |
runtime: convert timeHistogram to atomic types
I've dropped the note that sched.timeToRun is protected by sched.lock,
as it does not seem to be true.
For #53821.
Change-Id: I03f8dc6ca0bcd4ccf3ec113010a0aa39c6f7d6ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/419449
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 9216765fc6..e706cf7354 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -843,8 +843,6 @@ type schedt struct { // timeToRun is a distribution of scheduling latencies, defined // as the sum of time a G spends in the _Grunnable state before // it transitions to _Grunning. - // - // timeToRun is protected by sched.lock. timeToRun timeHistogram } |
