Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for vmkcall (0.09 sec)

  1. 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)
  2. 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)
  3. src/runtime/sys_windows_arm.s

    // so that we can call externally compiled
    // ARM code that will overwrite those registers.
    // NOTE: runtime.gogo assumes that R1 is preserved by this function.
    //       runtime.mcall assumes this function only clobbers R0 and R11.
    // Returns with g in R0.
    // Save the value in the _TEB->TlsSlots array.
    // Effectively implements TlsSetValue().
    // tls_g stores the TLS slot allocated TlsAlloc().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top