]> Cypherpunks repositories - gostls13.git/commit
runtime: convert schedt.lastpoll to atomic type
authorMichael Pratt <mpratt@google.com>
Wed, 20 Jul 2022 21:39:12 +0000 (17:39 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 12 Aug 2022 01:49:02 +0000 (01:49 +0000)
commit5d7d50111f123011723989a7d123d6f0a6df38e6
tree048b053aa24e2af48498b59c27fac94f475d470a
parent98e16488237b7f091ec35cbec12030a95b9f8f1b
runtime: convert schedt.lastpoll to atomic type

Note that this changes the type from uint64 to int64, the type used by
nanotime(). It also adds an atomic load in pollWork(), which used to use
a non-atomic load.

For #53821.

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