mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: convert g.atomicstatus to internal atomic type
Note that this changes some unsynchronized operations of g.atomicstatus to synchronized operations. Updates #53821 Change-Id: If249d62420ea09fbec39b570942f96c63669c333 Reviewed-on: https://go-review.googlesource.com/c/go/+/425363 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
parent
be26aa70d4
commit
3fbcf05d40
4 changed files with 15 additions and 15 deletions
|
|
@ -435,7 +435,7 @@ type g struct {
|
|||
// 3. By debugCallWrap to pass parameters to a new goroutine because allocating a
|
||||
// closure in the runtime is forbidden.
|
||||
param unsafe.Pointer
|
||||
atomicstatus uint32
|
||||
atomicstatus atomic.Uint32
|
||||
stackLock uint32 // sigprof/scang lock; TODO: fold in to atomicstatus
|
||||
goid uint64
|
||||
schedlink guintptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue