]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert p.numTimers and p.deletedTimers to internal atomic types
authorAndy Pan <panjf2000@gmail.com>
Fri, 26 Aug 2022 01:54:32 +0000 (09:54 +0800)
committerMichael Pratt <mpratt@google.com>
Wed, 31 Aug 2022 15:31:21 +0000 (15:31 +0000)
commit6e74c4116ae2825efab69cb8c60d078d76572a78
tree6e72ea9ca3a5c0eaa16ba68f896692054ff9edcf
parentd01200e772902ef8178af767a62a059bf340df31
runtime: convert p.numTimers and p.deletedTimers to internal atomic types

Note that this changes the non-atomic operations in p.destroy() to atomic operations.

For #53821

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