runtime: convert ncgocall to atomic type

For #53821

Change-Id: Ib0d62ee36487b3ed68e063976968f3cac6499e4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/426075
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: xie cui <523516579@qq.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
cuiweixie 2022-08-27 09:45:15 +08:00 committed by Michael Pratt
parent af991a6d28
commit 5a6db7c48f
3 changed files with 3 additions and 3 deletions

View file

@ -1530,7 +1530,7 @@ found:
}
unlock(&sched.lock)
atomic.Xadd64(&ncgocall, int64(mp.ncgocall))
ncgocall.Add(int64(mp.ncgocall))
// Release the P.
handoffp(releasep())