mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
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:
committed by
Michael Knyszek
parent
34397865b1
commit
4122d3e9ea
4
src/runtime/testdata/testprogcgo/notingo.go
vendored
4
src/runtime/testdata/testprogcgo/notingo.go
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user