Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RunSchedLocalQueueEmptyTest (0.19 sec)

  1. src/runtime/proc_test.go

    	// also preempts at the start of the sweep phase, so make sure that's
    	// done too. See #45867.
    	runtime.GC()
    
    	iters := int(1e5)
    	if testing.Short() {
    		iters = 1e2
    	}
    	runtime.RunSchedLocalQueueEmptyTest(iters)
    }
    
    func benchmarkStackGrowth(b *testing.B, rec int) {
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			stackGrowthRecursive(rec)
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    				throw("bad element")
    			}
    		}
    		if s != i/2 && s != i/2+1 {
    			print("bad steal ", s, ", want ", i/2, " or ", i/2+1, ", iter ", i, "\n")
    			throw("bad steal")
    		}
    	}
    }
    
    func RunSchedLocalQueueEmptyTest(iters int) {
    	// Test that runq is not spuriously reported as empty.
    	// Runq emptiness affects scheduling decisions and spurious emptiness
    	// can lead to underutilization (both runnable Gs and idle Ps coexist
    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