Open
Description
i think the nmspinning's position in struct schedt in runtime should be writen in the "m" part instead of "p" part
current is
midle muintptr // idle m's waiting for work
nmidle int32 // number of idle m's waiting for work
nmidlelocked int32 // number of locked m's waiting for work
mnext int64 // number of m's that have been created and next M ID
maxmcount int32 // maximum number of m's allowed (or die)
nmsys int32 // number of system m's not counted for deadlock
nmfreed int64 // cumulative number of freed m's
ngsys uint32 // number of system goroutines; updated atomically
pidle puintptr // idle p's
npidle uint32
nmspinning uint32 // See "Worker thread parking/unparking" comment in proc.go.
i think it should like this:
midle muintptr // idle m's waiting for work
nmidle int32 // number of idle m's waiting for work
nmidlelocked int32 // number of locked m's waiting for work
mnext int64 // number of m's that have been created and next M ID
maxmcount int32 // maximum number of m's allowed (or die)
nmsys int32 // number of system m's not counted for deadlock
nmfreed int64 // cumulative number of freed m's
nmspinning uint32 // See "Worker thread parking/unparking" comment in proc.go.
ngsys uint32 // number of system goroutines; updated atomically
pidle puintptr // idle p's
npidle uint32
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage Backlog