]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.20] sync: document memory model for Swap/CompareAnd{Swap,Delete...
authorChangkun Ou <hi@changkun.de>
Wed, 28 Dec 2022 14:04:58 +0000 (15:04 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 25 Jan 2023 19:53:59 +0000 (19:53 +0000)
commitb68d699aa73291d3ab8c7547047308efcd582072
treeba32cdd7f616ce9c319f58bedc05f8068a6333f9
parent10124c2631893fc944a98880796eadd7df048c37
[release-branch.go1.20] sync: document memory model for Swap/CompareAnd{Swap,Delete} in Map

CL 381316 documented the memory model of Map's APIs. However, the newly
introduced Swap, CompareAndSwap, and CompareAndDelete are missing from
this documentation as CL 399094 did not add this info.

This CL specifies the defined read/write operations of the new Map APIs.

For #51972

Change-Id: I519a04040a0b429a3f978823a183cd62e42c90ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/459715
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Changkun Ou <mail@changkun.de>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
(cherry picked from commit f07910bd577f73b81e4f7117c7cfdf9cf7579028)
Reviewed-on: https://go-review.googlesource.com/c/go/+/463416
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Changkun Ou <mail@changkun.de>
src/sync/map.go