]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert prof.hz to atomic type
authorMichael Pratt <mpratt@google.com>
Fri, 29 Jul 2022 18:48:48 +0000 (14:48 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 12 Aug 2022 01:53:44 +0000 (01:53 +0000)
commit54cf1b107d24e135990314b56b02264dba8620fc
treed6ab87e605e8f756094c6aa5531d2838ad7a4f0c
parent3121c2bf64ae7e5c17379af2cf2a5c16952f57f1
runtime: convert prof.hz to atomic type

This converts several unsynchronized reads (reads without holding
prof.signalLock) into atomic reads.

For #53821.
For #52912.

Change-Id: I421b96a22fbe26d699bcc21010c8a9e0f4efc276
Reviewed-on: https://go-review.googlesource.com/c/go/+/420196
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/cpuprof.go
src/runtime/proc.go
src/runtime/signal_unix.go