mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
09cc9bac72
commit
b04e4637db
7 changed files with 11 additions and 29 deletions
|
|
@ -703,11 +703,6 @@ func schedinit() {
|
|||
sigsave(&gp.m.sigmask)
|
||||
initSigmask = gp.m.sigmask
|
||||
|
||||
if offset := unsafe.Offsetof(sched.timeToRun); offset%8 != 0 {
|
||||
println(offset)
|
||||
throw("sched.timeToRun not aligned to 8 bytes")
|
||||
}
|
||||
|
||||
goargs()
|
||||
goenvs()
|
||||
parsedebugvars()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue