Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 288 for curg (0.27 sec)

  1. src/runtime/tracestack.go

    func traceStack(skip int, gp *g, gen uintptr) uint64 {
    	var pcBuf [traceStackSize]uintptr
    
    	// Figure out gp and mp for the backtrace.
    	var mp *m
    	if gp == nil {
    		mp = getg().m
    		gp = mp.curg
    	}
    
    	// Double-check that we own the stack we're about to trace.
    	if debug.traceCheckStackOwnership != 0 && gp != nil {
    		status := readgstatus(gp)
    		// If the scan bit is set, assume we're the ones that acquired it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/proc.go

    		var tagPtr *unsafe.Pointer
    		if gp != nil && gp.m != nil && gp.m.curg != nil {
    			tagPtr = &gp.m.curg.labels
    		}
    		cpuprof.add(tagPtr, stk[:n])
    
    		gprof := gp
    		var mp *m
    		var pp *p
    		if gp != nil && gp.m != nil {
    			if gp.m.curg != nil {
    				gprof = gp.m.curg
    			}
    			mp = gp.m
    			pp = gp.m.p.ptr()
    		}
    		traceCPUSample(gprof, mp, pp, stk[:n])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  3. src/runtime/cgocall.go

    // taken from the frame structure, records the results in the frame,
    // and returns to runtime.asmcgocall.
    //
    // After it regains control, runtime.asmcgocall switches back to the
    // original g (m->curg)'s stack and returns to runtime.cgocall.
    //
    // After it regains control, runtime.cgocall calls exitsyscall, which blocks
    // until this m can run Go code without violating the $GOMAXPROCS limit,
    // and then unlocks g from m.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/runtime/race_amd64.s

    // See racecallback for command codes.
    TEXT	runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0-0
    	// Handle command raceGetProcCmd (0) here.
    	// First, code below assumes that we are on curg, while raceGetProcCmd
    	// can be executed on g0. Second, it is called frequently, so will
    	// benefit from this fast path.
    	CMPQ	RARG0, $0
    	JNE	rest
    	get_tls(RARG0)
    	MOVQ	g(RARG0), RARG0
    	MOVQ	g_m(RARG0), RARG0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/runtime/debugcall.go

    // function call with return PC pc. If not, it returns a string
    // explaining why.
    //
    //go:nosplit
    func debugCallCheck(pc uintptr) string {
    	// No user calls from the system stack.
    	if getg() != getg().m.curg {
    		return debugCallSystemStack
    	}
    	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
    		// Fast syscalls (nanotime) and racecall switch to the
    		// g0 stack without switching g. We can't safely make
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/runtime/mprof.go

    	if tracefpunwindoff() || gp.m.hasCgoOnStack() {
    		mp.profStack[0] = logicalStackSentinel
    		if gp.m.curg == nil || gp.m.curg == gp {
    			nstk = callers(skip, mp.profStack[1:])
    		} else {
    			nstk = gcallers(gp.m.curg, skip, mp.profStack[1:])
    		}
    	} else {
    		mp.profStack[0] = uintptr(skip)
    		if gp.m.curg == nil || gp.m.curg == gp {
    			if skip > 0 {
    				// We skip one fewer frame than the provided value for frame
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. src/runtime/panic.go

    }
    
    // Create a new deferred function fn, which has no arguments and results.
    // The compiler turns a defer statement into a call to this.
    func deferproc(fn func()) {
    	gp := getg()
    	if gp.m.curg != gp {
    		// go code on the system stack can't defer
    		throw("defer on system stack")
    	}
    
    	d := newdefer()
    	d.link = gp._defer
    	gp._defer = d
    	d.fn = fn
    	d.pc = getcallerpc()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. src/runtime/race_arm64.s

    // See racecallback for command codes.
    TEXT	runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0
    	// Handle command raceGetProcCmd (0) here.
    	// First, code below assumes that we are on curg, while raceGetProcCmd
    	// can be executed on g0. Second, it is called frequently, so will
    	// benefit from this fast path.
    	CBNZ	R0, rest
    	MOVD	g, R13
    #ifdef TLS_darwin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. src/runtime/heapdump.go

    	gp := getg()
    	casGToWaiting(gp.m.curg, _Grunning, waitReasonDumpingHeap)
    
    	// Set dump file.
    	dumpfd = fd
    
    	// Call dump routine.
    	mdump(m)
    
    	// Reset dump file.
    	dumpfd = 0
    	if tmpbuf != nil {
    		sysFree(unsafe.Pointer(&tmpbuf[0]), uintptr(len(tmpbuf)), &memstats.other_sys)
    		tmpbuf = nil
    	}
    
    	casgstatus(gp.m.curg, _Gwaiting, _Grunning)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/runtime/traceevent.go

    	w := tl.writer()
    	if pp := tl.mp.p.ptr(); pp != nil && !pp.trace.statusWasTraced(tl.gen) && pp.trace.acquireStatus(tl.gen) {
    		w = w.writeProcStatus(uint64(pp.id), procStatus, pp.trace.inSweep)
    	}
    	if gp := tl.mp.curg; gp != nil && !gp.trace.statusWasTraced(tl.gen) && gp.trace.acquireStatus(tl.gen) {
    		w = w.writeGoStatus(uint64(gp.goid), int64(tl.mp.procid), goStatus, gp.inMarkAssist, 0 /* no stack */)
    	}
    	return traceEventWriter{w}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top