Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for vmkcall (0.13 sec)

  1. src/runtime/stubs.go

    func getg() *g
    
    // mcall switches from the g to the g0 stack and invokes fn(g),
    // where g is the goroutine that made the call.
    // mcall saves g's current PC/SP in g->sched so that it can be restored later.
    // It is up to fn to arrange for that later execution, typically by recording
    // g in a data structure, causing something to call ready(g) later.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. src/runtime/coro.go

    func coroexit(c *coro) {
    	gp := getg()
    	gp.coroarg = c
    	gp.coroexit = true
    	mcall(coroswitch_m)
    }
    
    //go:linkname coroswitch
    
    // coroswitch switches to the goroutine blocked on c
    // and then blocks the current goroutine on c.
    func coroswitch(c *coro) {
    	gp := getg()
    	gp.coroarg = c
    	mcall(coroswitch_m)
    }
    
    // coroswitch_m is the implementation of coroswitch
    // that runs on the m stack.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/cpu-profile.go

    func cpuHog1(x int) int {
    	return cpuHog0(x, 1e5)
    }
    
    func cpuHog0(x, n int) int {
    	foo := x
    	for i := 0; i < n; i++ {
    		if i%1000 == 0 {
    			// Spend time in mcall, stored as gp.m.curg, with g0 running
    			runtime.Gosched()
    		}
    		if foo > 0 {
    			foo *= foo
    		} else {
    			foo *= foo + 1
    		}
    	}
    	return foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/runtime/preempt.go

    //
    // asyncPreempt is implemented in assembly.
    func asyncPreempt()
    
    //go:nosplit
    func asyncPreempt2() {
    	gp := getg()
    	gp.asyncSafePoint = true
    	if gp.preemptStop {
    		mcall(preemptPark)
    	} else {
    		mcall(gopreempt_m)
    	}
    	gp.asyncSafePoint = false
    }
    
    // asyncPreemptStack is the bytes of stack space required to inject an
    // asyncPreempt call.
    var asyncPreemptStack = ^uintptr(0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/runtime/tracestack.go

    		pcBuf[0] = uintptr(skip)
    		if getg() == gp {
    			nstk += fpTracebackPCs(unsafe.Pointer(getfp()), pcBuf[1:])
    		} else if gp != nil {
    			// Three cases:
    			//
    			// (1) We're called on the g0 stack through mcall(fn) or systemstack(fn). To
    			// behave like gcallers above, we start unwinding from sched.bp, which
    			// points to the caller frame of the leaf frame on g's stack. The return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/runtime/race_amd64.s

    // C->Go callback thunk that allows to call runtime·racesymbolize from C code.
    // Direct Go->C race call has only switched SP, finish g->g0 switch by setting correct g.
    // The overall effect of Go->C->Go call chain is similar to that of mcall.
    // RARG0 contains command code. RARG1 contains command-specific context.
    // See racecallback for command codes.
    TEXT	runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0-0
    	// Handle command raceGetProcCmd (0) here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. src/runtime/race_arm64.s

    // C->Go callback thunk that allows to call runtime·racesymbolize from C code.
    // Direct Go->C race call has only switched SP, finish g->g0 switch by setting correct g.
    // The overall effect of Go->C->Go call chain is similar to that of mcall.
    // R0 contains command code. R1 contains command-specific context.
    // See racecallback for command codes.
    TEXT	runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0
    	// Handle command raceGetProcCmd (0) here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. src/runtime/HACKING.md

    runtime and cgo code (8K in a pure Go binary; system-allocated in a
    cgo binary).
    
    Runtime code often temporarily switches to the system stack using
    `systemstack`, `mcall`, or `asmcgocall` to perform tasks that must not
    be preempted, that must not grow the user stack, or that switch user
    goroutines. Code running on the system stack is implicitly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/runtime/race_ppc64le.s

    // C->Go callback thunk that allows to call runtime·racesymbolize from C code.
    // Direct Go->C race call has only switched SP, finish g->g0 switch by setting correct g.
    // The overall effect of Go->C->Go call chain is similar to that of mcall.
    // RARG0 contains command code. RARG1 contains command-specific context.
    // See racecallback for command codes.
    TEXT	runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0
    	// Handle command raceGetProcCmd (0) here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  10. src/runtime/proc.go

    //
    //go:nosplit
    func Gosched() {
    	checkTimeouts()
    	mcall(gosched_m)
    }
    
    // goschedguarded yields the processor like gosched, but also checks
    // for forbidden states and opts out of the yield in those cases.
    //
    //go:nosplit
    func goschedguarded() {
    	mcall(goschedguarded_m)
    }
    
    // goschedIfBusy yields the processor like gosched, but only does so if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top