diff options
| author | Cherry Mui <cherryyz@google.com> | 2026-02-25 12:03:11 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2026-04-01 14:17:20 -0700 |
| commit | 0dcd7ab1b9658183d52ccadf9135834fdd57e2ba (patch) | |
| tree | c605b93cc5d5d3bacdcf4422ae4c93becce59b02 /src/runtime/_mkmalloc | |
| parent | 8f4fe790be50dba670ce21f1ce565641d51fe3a3 (diff) | |
| download | go-0dcd7ab1b9658183d52ccadf9135834fdd57e2ba.tar.xz | |
internal/runtime/atomic: simplify linknames
When not in race mode, we redirect the sync/atomic functions to
internal/runtime/atomic with assembly stubs in the sync/atomic
package. Access from assembly is similar to linkname, so they need
export linknames from internal/runtime/atomic. We currently have
export linknames only for the Go functions, which varies from
architecture to architecture. This CL adds export linknames to
assembly functions as well, so they are same on all architectures.
Linknames on assembly functions don't hurt. Also, we may restrict
linkname access to assembly symbols without a push or export
linkname later. This CL prepares for that.
Change-Id: Ic6167a2f6610b9b1b1193e2ea86095ab7506b282
Reviewed-on: https://go-review.googlesource.com/c/go/+/749945
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/_mkmalloc')
0 files changed, 0 insertions, 0 deletions
