runtime.g.preempt (field)
16 uses
runtime (current package)
lock_sema.go#L126: if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
mgc.go#L1981: if gp.preempt {
mgcmark.go#L468: if gp.preempt {
mgcmark.go#L1009: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcmark.go#L1023: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcmark.go#L1105: for !gp.preempt && workFlushed+gcw.scanWork < scanWork {
mgcwork.go#L470: for i := 0; i < batchSize && !(preemptible && gp.preempt); i++ {
preempt.go#L175: gp.preempt = false
preempt.go#L195: if gp.preemptStop && gp.preempt && gp.stackguard0 == stackPreempt && asyncM == gp.m && atomic.Load(&asyncM.preemptGen) == asyncGen {
preempt.go#L206: gp.preempt = true
preempt.go#L344: return (gp.preempt || gp.m.p != 0 && gp.m.p.ptr().preempt) && readgstatus(gp)&^_Gscan == _Grunning
proc.go#L2528: gp.preempt = false
proc.go#L3684: if _g_.preempt {
proc.go#L5370: gp.preempt = true
runtime1.go#L477: if mp.locks == 0 && _g_.preempt {
runtime2.go#L431: preempt bool // preemption signal, duplicates stackguard0 = stackpreempt
![]() |
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. |