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>
This commit is contained in:
Joel Sing
2025-12-09 00:11:55 +11:00
committed by Michael Knyszek
parent 34397865b1
commit 4122d3e9ea

View File

@@ -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();