From ef8414101fba959c8df220ca0e544781029ce111 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 1 Sep 2022 18:07:33 +0000 Subject: Revert "runtime: convert ncgocall to atomic type" This reverts CL 426075. Reason for revert: Import missing from cgocall.go. Change-Id: Iac17e914045b83da30484dbe2a624cde526fb175 Reviewed-on: https://go-review.googlesource.com/c/go/+/427614 Reviewed-by: Heschi Kreinick --- src/runtime/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/proc.go') diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 89cb5c70f0..6ecb786d1b 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1530,7 +1530,7 @@ found: } unlock(&sched.lock) - ncgocall.Add(int64(mp.ncgocall)) + atomic.Xadd64(&ncgocall, int64(mp.ncgocall)) // Release the P. handoffp(releasep()) -- cgit v1.3-5-g9baa