Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for runqsteal (0.09 sec)

  1. src/runtime/proc.go

    				}
    				if ran {
    					// Running the timers may have
    					// made an arbitrary number of G's
    					// ready and added them to this P's
    					// local run queue. That invalidates
    					// the assumption of runqsteal
    					// that it always has room to add
    					// stolen G's. So check now if there
    					// is a local G to run.
    					if gp, inheritTime := runqget(pp); gp != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    	Escape(gs) // Ensure gs doesn't move, since we use guintptrs
    	for i := 0; i < len(p1.runq); i++ {
    		for j := 0; j < i; j++ {
    			gs[j].sig = 0
    			runqput(p1, &gs[j], false)
    		}
    		gp := runqsteal(p2, p1, true)
    		s := 0
    		if gp != nil {
    			s++
    			gp.sig++
    		}
    		for {
    			gp, _ = runqget(p2)
    			if gp == nil {
    				break
    			}
    			s++
    			gp.sig++
    		}
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top