diff options
| author | Joel Sing <joel@sing.id.au> | 2025-12-09 00:11:55 +1100 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2025-12-08 07:59:15 -0800 |
| commit | 4122d3e9ea55c8d2293e0a0c59cd6e467021c9e0 (patch) | |
| tree | ab75693c42f0594a56c6895931b149d0db362551 /src | |
| parent | 34397865b1174f4d4b33941877a5906e50965b3b (diff) | |
| download | go-4122d3e9ea55c8d2293e0a0c59cd6e467021c9e0.tar.xz | |
runtime: use atomic C types with atomic C functions
Mark types as _Atomic - fixes breakage introduced in CL 726964
across most LLVM based platforms/builders.
Change-Id: I5e64b9ccb0cf5244977a787a52ee124bc03c10de
Reviewed-on: https://go-review.googlesource.com/c/go/+/728040
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/testdata/testprogcgo/notingo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/testdata/testprogcgo/notingo.go b/src/runtime/testdata/testprogcgo/notingo.go index e5b1062e9e..6e78126358 100644 --- a/src/runtime/testdata/testprogcgo/notingo.go +++ b/src/runtime/testdata/testprogcgo/notingo.go @@ -14,8 +14,8 @@ package main extern void Ready(); -static int spinning; -static int released; +static _Atomic int spinning; +static _Atomic int released; static void* enterGoThenSpinTwice(void* arg __attribute__ ((unused))) { Ready(); |
