From 559b17fe3422f070d6cb8e68ac2ac12431d78b43 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 2 Jun 2022 16:43:12 -0400 Subject: [PATCH] doc/go1.19: add release notes for sync/atomic For #51400 Change-Id: I32a3aedf1e8a52148a9d78c4f7dae1ea59c810b4 Reviewed-on: https://go-review.googlesource.com/c/go/+/410115 Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek --- doc/go1.19.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/go1.19.html b/doc/go1.19.html index be313f0f3b..e7387268ba 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -107,10 +107,34 @@ Do not send CLs removing the interior tags from such phrases.

TODO: complete this section, or delete if not needed

+

Core library

+ +

New atomic types

+

+ The sync/atomic package defines new atomic types + Bool, + Int32, + Int64, + Uint32, + Uint64, + Uintptr, and + Pointer. + These types hide the underlying values so that all accesses are forced to use + the atomic APIs. + Pointer also avoids + the need to convert to + unsafe.Pointer at call sites. + Int64 and + Uint64 automatically + receive 64-bit alignment on ARM, 386, and 32-bit MIPS required for 64-bit + atomics on these systems. +

+

TODO: complete this section

+

Minor changes to the library

As always, there are various minor changes and updates to the library, -- 2.50.0