-ee94431c133a90ca5c3c5ebbebcb019c60258dac
+d6576c83016d856217758c06d945bfc363ffb817
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
break loop
}
+ case _Gexitingsyscall:
+ // This is a transient state during which we should not scan its stack.
+ // Try again.
+
case _Gscanwaiting:
// newstack is doing a scan for us right now. Wait.
traceGoPark(_g_.m.waittraceev, _g_.m.waittraceskip)
}
- casgstatus(gp, _Grunning, _Gwaiting)
dropg()
+ casgstatus(gp, _Grunning, _Gwaiting)
if _g_.m.waitunlockf != nil {
fn := *(*func(*g, unsafe.Pointer) bool)(unsafe.Pointer(&_g_.m.waitunlockf))
dumpgstatus(gp)
throw("bad g status")
}
- casgstatus(gp, _Grunning, _Grunnable)
dropg()
+ casgstatus(gp, _Grunning, _Grunnable)
lock(&sched.lock)
globrunqput(gp)
unlock(&sched.lock)
func exitsyscall0(gp *g) {
_g_ := getg()
- casgstatus(gp, _Gsyscall, _Grunnable)
+ casgstatus(gp, _Gsyscall, _Gexitingsyscall)
dropg()
+ casgstatus(gp, _Gexitingsyscall, _Grunnable)
lock(&sched.lock)
_p_ := pidleget()
if _p_ == nil {
// stack is owned by the goroutine that put it in _Gcopystack.
_Gcopystack // 8
+ // _Gexitingsyscall means this goroutine is exiting from a
+ // system call. This is like _Gsyscall, but the GC should not
+ // scan its stack. Currently this is only used in exitsyscall0
+ // as a transient state when it drops the G.
+ _Gexitingsyscall // 9
+
// _Gscan combined with one of the above states other than
// _Grunning indicates that GC is scanning the stack. The
// goroutine is not executing user code and the stack is owned
}
var gStatusStrings = [...]string{
- _Gidle: "idle",
- _Grunnable: "runnable",
- _Grunning: "running",
- _Gsyscall: "syscall",
- _Gwaiting: "waiting",
- _Gdead: "dead",
- _Gcopystack: "copystack",
+ _Gidle: "idle",
+ _Grunnable: "runnable",
+ _Grunning: "running",
+ _Gsyscall: "syscall",
+ _Gwaiting: "waiting",
+ _Gdead: "dead",
+ _Gcopystack: "copystack",
+ _Gexitingsyscall: "exiting syscall",
}
func goroutineheader(gp *g) {