Commit ad832284 authored by Austin Clements's avatar Austin Clements

runtime: remove some unused fields in m and p

Change-Id: Ie0171f48aaf48d8399ef578f95352445741d83a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/171773Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent d79aea6b
...@@ -434,7 +434,6 @@ type m struct { ...@@ -434,7 +434,6 @@ type m struct {
profilehz int32 profilehz int32
spinning bool // m is out of work and is actively looking for work spinning bool // m is out of work and is actively looking for work
blocked bool // m is blocked on a note blocked bool // m is blocked on a note
inwb bool // m is executing a write barrier
newSigstack bool // minit on C thread called sigaltstack newSigstack bool // minit on C thread called sigaltstack
printlock int8 printlock int8
incgo bool // m is executing a cgo call incgo bool // m is executing a cgo call
...@@ -481,8 +480,6 @@ type m struct { ...@@ -481,8 +480,6 @@ type m struct {
} }
type p struct { type p struct {
lock mutex
id int32 id int32
status uint32 // one of pidle/prunning/... status uint32 // one of pidle/prunning/...
link puintptr link puintptr
...@@ -536,10 +533,12 @@ type p struct { ...@@ -536,10 +533,12 @@ type p struct {
palloc persistentAlloc // per-P to avoid mutex palloc persistentAlloc // per-P to avoid mutex
_ uint32 // Alignment for atomic fields below
// Per-P GC state // Per-P GC state
gcAssistTime int64 // Nanoseconds in assistAlloc gcAssistTime int64 // Nanoseconds in assistAlloc
gcFractionalMarkTime int64 // Nanoseconds in fractional mark worker gcFractionalMarkTime int64 // Nanoseconds in fractional mark worker (atomic)
gcBgMarkWorker guintptr gcBgMarkWorker guintptr // (atomic)
gcMarkWorkerMode gcMarkWorkerMode gcMarkWorkerMode gcMarkWorkerMode
// gcMarkWorkerStartTime is the nanotime() at which this mark // gcMarkWorkerStartTime is the nanotime() at which this mark
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment