]> Cypherpunks repositories - gostls13.git/commit
runtime: add arg maps for sync/atomic functions in ARM64 race mode
authorCherry Zhang <cherryyz@google.com>
Tue, 20 Nov 2018 15:20:06 +0000 (10:20 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 21 Nov 2018 00:10:38 +0000 (00:10 +0000)
commitc6e698d5dd0d3a309c2d93368dcc451820deb66d
tree4da74bb4d934ec2f9f862fa7e94afe7232b6b170
parentaff2f6ece896e0fe76a2c8853abf868f689006f0
runtime: add arg maps for sync/atomic functions in ARM64 race mode

In race mode, these functions are defined and declared in
different packages, which therefore don't have implicit arg maps.
When they are defer'd, and the stack needs to move, the runtime
fails with missing stack maps. This CL adds arg maps (FUNCDATA)
to them.

Updates #28848

Change-Id: I0271563b7e78e7797ce2990c303dced957efaa86
Reviewed-on: https://go-review.googlesource.com/c/150457
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/race_arm64.s