Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RunStealOrderTest (0.32 sec)

  1. src/runtime/proc_runtime_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Proc unit tests. In runtime package so can use runtime guts.
    
    package runtime
    
    func RunStealOrderTest() {
    	var ord randomOrder
    	for procs := 1; procs <= 64; procs++ {
    		ord.reset(uint32(procs))
    		if procs >= 3 && len(ord.coprimes) < 2 {
    			panic("too few coprimes")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 18:43:08 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/proc_test.go

    				for k := k0; k < k1; k++ {
    					C[i][j] += A[i][k] * B[k][j]
    				}
    			}
    		}
    	}
    	if done != nil {
    		done <- struct{}{}
    	}
    }
    
    func TestStealOrder(t *testing.T) {
    	runtime.RunStealOrderTest()
    }
    
    func TestLockOSThreadNesting(t *testing.T) {
    	if runtime.GOARCH == "wasm" {
    		t.Skip("no threads on wasm yet")
    	}
    
    	go func() {
    		e, i := runtime.LockOSCounts()
    		if e != 0 || i != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top