]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert gcController.heapLive to atomic type
authorMichael Pratt <mpratt@google.com>
Fri, 15 Jul 2022 18:21:02 +0000 (14:21 -0400)
committerMichael Pratt <mpratt@google.com>
Mon, 8 Aug 2022 14:11:09 +0000 (14:11 +0000)
commit3a9281ff6181031adcc1d3991a1b1413db046430
tree675d09ad244743b9a3feacc9b6300954819ded4d
parent5405df09afff46d065da1d73d56347f7c859ab6f
runtime: convert gcController.heapLive to atomic type

Atomic operations are used even during STW for consistency.

For #53821.

Change-Id: Ibe7afe5cf893b1288ce24fc96b7691b1f81754ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/417775
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/align_runtime_test.go
src/runtime/export_test.go
src/runtime/mgc.go
src/runtime/mgcpacer.go
src/runtime/mgcsweep.go
src/runtime/trace.go