]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: use a better first-store-in-progress marker
authorKeith Randall <khr@golang.org>
Thu, 9 Jul 2020 16:13:34 +0000 (09:13 -0700)
committerKeith Randall <khr@golang.org>
Tue, 26 Oct 2021 20:41:32 +0000 (20:41 +0000)
commit3a0cd1121413ad02172784114318ac6b0c2801c1
treec164dab0dd801872554beb2471265870049865d6
parentf8779b9e757e38810bec2284e06fea20bbf09bf4
sync/atomic: use a better first-store-in-progress marker

Unlike what the comment says, the GC can see this pointer.
Might as well make it a real pointer, even though ^uintptr(0)
isn't currently causing problems.

Removed the comment about GC not seeing the pointer.

Change-Id: I04bc1fd4848698bec6afb79bd5fda671dfc9a073
Reviewed-on: https://go-review.googlesource.com/c/go/+/241661
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Colin Arnott <colin@urandom.co.uk>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Keith Randall <khr@golang.org>
src/sync/atomic/value.go