]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: declare arg size/map for race version of sync/atomic functions
authorCherry Zhang <cherryyz@google.com>
Sat, 14 Nov 2020 02:08:26 +0000 (21:08 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 16 Nov 2020 17:26:46 +0000 (17:26 +0000)
commit0932dc21180642ce1ff095b9b3e68b06c6f440b3
treef4dbde07ad8c27767b61ae96eb6d38acf8c10976
parentd70a33a40bd2bab2f8cd6ab714c4664ce55dc499
runtime: declare arg size/map for race version of sync/atomic functions

The argument size and map are used in stack scanning if those
functions are deferred. Declare the right argument size and map
so they can be scanned correctly.

Fixes #42599.

Change-Id: I74f9409d574cf7c383f4d8f83e38521026b48861
Reviewed-on: https://go-review.googlesource.com/c/go/+/270079
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/race/testdata/atomic_test.go
src/runtime/race_amd64.s
src/runtime/race_arm64.s
src/runtime/race_ppc64le.s