runtime.m.curg (field)
86 uses
runtime (current package)
cgocall.go#L202: if gp != gp.m.curg {
debugcall.go#L28: if getg() != getg().m.curg {
heapdump.go#L695: casgstatus(_g_.m.curg, _Grunning, _Gwaiting)
heapdump.go#L716: casgstatus(_g_.m.curg, _Gwaiting, _Grunning)
malloc.go#L950: if assistG.m.curg != nil {
malloc.go#L951: assistG = assistG.m.curg
mbitmap.go#L2001: if _g_ := getg(); _g_.m.curg.stack.lo <= uintptr(p) && uintptr(p) < _g_.m.curg.stack.hi {
mbitmap.go#L2005: gentraceback(_g_.m.curg.sched.pc, _g_.m.curg.sched.sp, 0, _g_.m.curg, 0, nil, 1000, getgcmaskcb, noescape(unsafe.Pointer(&frame)), 0)
mgc.go#L1518: gp := getg().m.curg
mgc.go#L1639: gp := _g_.m.curg
mgcmark.go#L211: userG := getg().m.curg
mgcmark.go#L986: gp := getg().m.curg
mgcmark.go#L1104: gp := getg().m.curg
mgcwork.go#L469: gp := getg().m.curg
mprof.go#L418: if gp.m.curg == nil || gp.m.curg == gp {
mprof.go#L421: nstk = gcallers(gp.m.curg, skip, stk[:])
mprof.go#L850: if gp.m.curg == nil || gp == gp.m.curg {
mprof.go#L858: goroutineheader(gp.m.curg)
mprof.go#L859: traceback(^uintptr(0), ^uintptr(0), 0, gp.m.curg)
panic.go#L225: if gp.m.curg != gp {
panic.go#L278: if gp.m.curg != gp {
panic.go#L887: if gp.m.curg != gp {
panic.go#L1304: if gp != gp.m.curg {
panic.go#L1350: if gp == nil || gp != _m_.curg {
preempt.go#L106: if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
preempt.go#L369: if mp.curg != gp {
proc.go#L324: gp := mp.curg
proc.go#L1867: casgstatus(mp.curg, _Gdead, _Gsyscall)
proc.go#L1915: mp.curg = gp
proc.go#L1969: casgstatus(mp.curg, _Gsyscall, _Gdead)
proc.go#L1970: mp.curg.preemptStop = false
proc.go#L2524: _g_.m.curg = gp
proc.go#L3177: setMNoWB(&_g_.m.curg.m, nil)
proc.go#L3178: setGNoWB(&_g_.m.curg, nil)
proc.go#L3844: gp := getg().m.curg
proc.go#L3868: gp := getg().m.curg
proc.go#L4051: if writeBarrier.needed && !_g_.m.curg.gcscandone {
proc.go#L4071: if _g_.m.curg != nil {
proc.go#L4072: newg.labels = _g_.m.curg.labels
proc.go#L4478: if mp.ncgo > 0 && mp.curg != nil && mp.curg.syscallpc != 0 && mp.curg.syscallsp != 0 {
proc.go#L4494: n = gentraceback(mp.curg.syscallpc, mp.curg.syscallsp, 0, mp.curg, 0, &stk[cgoOff], len(stk)-cgoOff, nil, nil, 0)
proc.go#L5365: gp := mp.curg
proc.go#L5434: gp := mp.curg
runtime2.go#L498: curg *g // current running goroutine
sema.go#L100: if gp != gp.m.curg {
signal_unix.go#L663: if crashing > 0 && gp != _g_.m.curg && _g_.m.curg != nil && readgstatus(_g_.m.curg)&^_Gscan == _Grunning {
signal_unix.go#L665: goroutineheader(_g_.m.curg)
signal_unix.go#L666: traceback(^uintptr(0), ^uintptr(0), 0, _g_.m.curg)
signal_unix.go#L1015: if g != nil && g.m != nil && g.m.curg != nil && !g.m.incgo {
stack.go#L944: if thisg.m.morebuf.g.ptr() != thisg.m.curg {
stack.go#L945: print("runtime: newstack called from g=", hex(thisg.m.morebuf.g), "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
stack.go#L951: gp := thisg.m.curg
stack.go#L953: if thisg.m.curg.throwsplit {
stack.go#L1134: if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
stack.go#L1145: if gp == getg().m.curg && gp.m.libcallsp != 0 {
trace.go#L535: if getg() == mp.curg {
trace.go#L593: gp := mp.curg
trace.go#L598: gp = mp.curg
trace.go#L632: dolock := owner == nil || owner != getg().m.curg
trace.go#L1064: _g_ := getg().m.curg
trace.go#L1128: _g_ := getg().m.curg
traceback.go#L92: if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
traceback.go#L188: if flags&_TraceJumpStack != 0 && gp == gp.m.g0 && gp.m.curg != nil {
traceback.go#L196: frame.pc = gp.m.curg.sched.pc
traceback.go#L199: frame.sp = gp.m.curg.sched.sp
traceback.go#L200: cgoCtxt = gp.m.curg.cgoCtxt
traceback.go#L204: frame.sp = gp.m.curg.sched.sp
traceback.go#L205: cgoCtxt = gp.m.curg.cgoCtxt
traceback.go#L451: if gp.m != nil && gp.m.throwing > 0 && gp == gp.m.curg || level >= 2 {
traceback.go#L813: if g.m.throwing > 0 && gp != nil && (gp == g.m.curg || gp == g.m.caughtsig.ptr()) {
traceback.go#L920: curgp := getg().m.curg
traceback.go#L1315: if panicking > 0 || getg().m.curg != getg() {
traceback.go#L1332: if panicking > 0 || getg().m.curg != getg() {
 |
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. |