]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: make intrinsics noescape except 64bits op on 32bits arch and unsafe...
authorJorropo <jorropo.pgm@gmail.com>
Wed, 18 Jan 2023 17:03:30 +0000 (18:03 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 15 Nov 2024 17:11:46 +0000 (17:11 +0000)
commite30ce3c498b623f5a492a8e77c32077c1ecf3a1f
tree8dc3e76db71478aad25854dbdd024bec38ef0783
parent956d4bb9cf47718cdb24f6e34990df47d73b1a69
sync/atomic: make intrinsics noescape except 64bits op on 32bits arch and unsafe.Pointer

Fixes #16241

I made 64 bits op on 32 bits arches still leak since it was kinda promised.

The promised leaks were wider than this but I don't belive it's effect can
be observed in an breaking maner without using unsafe the way it's currently
setup.

Change-Id: I66d8df47bfe49bce3efa64ac668a2a55f70733a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/462298
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/sync/atomic/doc.go
src/sync/atomic/doc_32.go [new file with mode: 0644]
src/sync/atomic/doc_64.go [new file with mode: 0644]
test/fixedbugs/issue16241.go [new file with mode: 0644]
test/fixedbugs/issue16241_64.go [new file with mode: 0644]