mirror of https://github.com/golang/go.git
These implementations will inline to the lower-level primitives, but they hide the underlying values so that all accesses are forced to use the atomic APIs. They also allow the use of shorter names (methods instead of functions) at call sites, making code more readable. Pointer[T] also avoids conversions using unsafe.Pointer at call sites. Discussed on #47141. See also https://research.swtch.com/gomm for background. Fixes #50860. Change-Id: I0b178ee0c7747fa8985f8e48cd7b01063feb7dcc Reviewed-on: https://go-review.googlesource.com/c/go/+/381317 Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| 30715.txt | ||
| 35044.txt | ||
| 42710.txt | ||
| 43724.txt | ||
| 45628.txt | ||
| 45754.txt | ||
| 46057.txt | ||
| 46059.txt | ||
| 46121.txt | ||
| 46229.txt | ||
| 47005.txt | ||
| 48409.txt | ||
| 50340.txt | ||
| 50599.txt | ||
| 50601.txt | ||
| 50674.txt | ||
| 50860.txt | ||
| 51082.txt | ||
| 51414.txt | ||
| 51644.txt | ||
| 51684.txt | ||
| 51868.txt | ||