Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isSystemGoroutine (0.89 sec)

  1. src/internal/trace/summary.go

    			if _, ok := gmap[edge.operand]; ok {
    				gmap1[edge.operator] = struct{}{}
    			}
    		}
    		gmap = gmap1
    	}
    	return gmap
    }
    
    func IsSystemGoroutine(entryFn string) bool {
    	// This mimics runtime.isSystemGoroutine as closely as
    	// possible.
    	// Also, locked g in extra M (with empty entryFn) is system goroutine.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    	gp := getg()
    
    	isOK := func(gp1 *g) bool {
    		// Checking isSystemGoroutine here makes GoroutineProfile
    		// consistent with both NumGoroutine and Stack.
    		return gp1 != gp && readgstatus(gp1) != _Gdead && !isSystemGoroutine(gp1, false)
    	}
    
    	pcbuf := makeProfStack() // see saveg() for explanation
    	stw := stopTheWorld(stwGoroutineProfile)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/cmd/trace/gstate.go

    	if gs.named {
    		return
    	}
    	if stk == trace.NoStack {
    		return
    	}
    	name := lastFunc(stk)
    	gs.baseName += fmt.Sprintf(" %s", name)
    	gs.named = true
    	gs.isSystemG = trace.IsSystemGoroutine(name)
    }
    
    // setLabel adds an additional label to the goroutine's name.
    func (gs *gState[R]) setLabel(label string) {
    	gs.label = label
    }
    
    // name returns a name for the goroutine.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. src/runtime/traceback.go

    //
    // If fixed is true, any goroutine that can vary between user and
    // system (that is, the finalizer goroutine) is considered a user
    // goroutine.
    func isSystemGoroutine(gp *g, fixed bool) bool {
    	// Keep this in sync with internal/trace.IsSystemGoroutine.
    	f := findfunc(gp.startpc)
    	if !f.valid() {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. src/runtime/heapdump.go

    	}
    
    	dumpint(tagGoroutine)
    	dumpint(uint64(uintptr(unsafe.Pointer(gp))))
    	dumpint(uint64(sp))
    	dumpint(gp.goid)
    	dumpint(uint64(gp.gopc))
    	dumpint(uint64(readgstatus(gp)))
    	dumpbool(isSystemGoroutine(gp, false))
    	dumpbool(false) // isbackground
    	dumpint(uint64(gp.waitsince))
    	dumpstr(gp.waitreason.String())
    	dumpint(uint64(uintptr(gp.sched.ctxt)))
    	dumpint(uint64(uintptr(unsafe.Pointer(gp.m))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/runtime/proc.go

    	schedule()
    }
    
    func gdestroy(gp *g) {
    	mp := getg().m
    	pp := mp.p.ptr()
    
    	casgstatus(gp, _Grunning, _Gdead)
    	gcController.addScannableStack(pp, -int64(gp.stack.hi-gp.stack.lo))
    	if isSystemGoroutine(gp, false) {
    		sched.ngsys.Add(-1)
    	}
    	gp.m = nil
    	locked := gp.lockedm != 0
    	gp.lockedm = 0
    	mp.lockedg = 0
    	gp.preemptStop = false
    	gp.paniconfault = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof_test.go

    					// Runtime system goroutines or threads
    					// (such as those identified by
    					// runtime.isSystemGoroutine). These
    					// should never be labeled.
    					mustNotBeLabeled = l.Function.Name
    				case "gogo", "gosave_systemstack_switch", "racecall":
    					// These are context switch/race
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top