runtime.p.status (field)
32 uses
runtime (current package)
mgc.go#L707: if p.status != _Prunning {
preempt.go#L288: return mp.locks == 0 && mp.mallocing == 0 && mp.preemptoff == "" && mp.p.ptr().status == _Prunning
proc.go#L1087: _g_.m.p.ptr().status = _Pgcstop // Pgcstop is only diagnostic.
proc.go#L1091: s := p.status
proc.go#L1092: if s == _Psyscall && atomic.Cas(&p.status, s, _Pgcstop) {
proc.go#L1107: p.status = _Pgcstop
proc.go#L1131: if p.status != _Pgcstop {
proc.go#L1510: s := p.status
proc.go#L1511: if s == _Psyscall && p.runSafePointFn == 1 && atomic.Cas(&p.status, s, _Pidle) {
proc.go#L2384: _p_.status = _Pgcstop
proc.go#L2501: _p_.status = _Pgcstop
proc.go#L3549: atomic.Store(&pp.status, _Psyscall)
proc.go#L3582: if sched.stopwait > 0 && atomic.Cas(&_p_.status, _Psyscall, _Pgcstop) {
proc.go#L3741: if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
proc.go#L4643: pp.status = _Pgcstop
proc.go#L4765: pp.status = _Pdead
proc.go#L4841: _g_.m.p.ptr().status = _Prunning
proc.go#L4862: p.status = _Pidle
proc.go#L4894: p.status = _Pidle
proc.go#L4942: if _p_.m != 0 || _p_.status != _Pidle {
proc.go#L4947: print("wirep: p->m=", _p_.m, "(", id, ") p->status=", _p_.status, "\n")
proc.go#L4952: _p_.status = _Prunning
proc.go#L4963: if _p_.m.ptr() != _g_.m || _p_.status != _Prunning {
proc.go#L4964: print("releasep: m=", _g_.m, " m->p=", _g_.m.p.ptr(), " p->m=", hex(_p_.m), " p->status=", _p_.status, "\n")
proc.go#L4972: _p_.status = _Pidle
proc.go#L5279: s := _p_.status
proc.go#L5315: if atomic.Cas(&_p_.status, s, _Pidle) {
proc.go#L5340: if _p_.status != _Prunning {
proc.go#L5412: print(" P", i, ": status=", _p_.status, " schedtick=", _p_.schedtick, " syscalltick=", _p_.syscalltick, " m=", id, " runqsize=", t-h, " gfreecnt=", _p_.gFree.n, " timerslen=", len(_p_.timers), "\n")
proc.go#L5890: if _p_.status == _Prunning {
runtime2.go#L578: status uint32 // one of pidle/prunning/...
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |