]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert forcegcstate.idle to internal atomic type
authorAndy Pan <panjf2000@gmail.com>
Wed, 24 Aug 2022 19:03:35 +0000 (03:03 +0800)
committerMichael Pratt <mpratt@google.com>
Fri, 26 Aug 2022 16:35:29 +0000 (16:35 +0000)
commite0ec1d6770879518af726b6cd8693dab3390db24
tree07ab1edf894194d20831cb6a05c5e4c5d0c33e23
parent951d2c657da75d5aad09719e89987e1e1a43bbb4
runtime: convert forcegcstate.idle to internal atomic type

Note that this changes a few unsynchronized operations of forcegcstate.idle to synchronized operations.

Updates #53821

Change-Id: I041654cc84a188fad45e2df7abce3a434f9a1f15
Reviewed-on: https://go-review.googlesource.com/c/go/+/425361
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/proc.go
src/runtime/runtime2.go