Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 461 for race (0.04 sec)

  1. src/os/read_test.go

    }
    
    func TestWriteFile(t *testing.T) {
    	t.Parallel()
    
    	f, err := CreateTemp("", "os-test")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    	defer Remove(f.Name())
    
    	msg := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/os/dir_darwin.go

    		if errno != nil {
    			return nil, nil, nil, &PathError{Op: call, Path: f.name, Err: errno}
    		}
    		d = &dirInfo{dir: dir}
    		if f.dirinfo.CompareAndSwap(nil, d) {
    			break
    		}
    		// We lost the race: try again.
    		d.close()
    	}
    
    	size := n
    	if size <= 0 {
    		size = 100
    		n = -1
    	}
    
    	var dirent syscall.Dirent
    	var entptr *syscall.Dirent
    	for len(names)+len(dirents)+len(infos) < size || n == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    // simpler code to avoid floating point.
    func nextSampleNoFP() uintptr {
    	// Set first allocation sample size.
    	rate := MemProfileRate
    	if rate > 0x3fffffff { // make 2*rate not overflow
    		rate = 0x3fffffff
    	}
    	if rate != 0 {
    		return uintptr(cheaprandn(uint32(2 * rate)))
    	}
    	return 0
    }
    
    type persistentAlloc struct {
    	base *notInHeap
    	off  uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/syscall/exec_unix.go

    // have to allocate the descriptor and then mark it close-on-exec.
    // If a fork happens between those two events, the child's exec
    // will inherit an unwanted file descriptor.
    //
    // This lock solves that race: the create new fd/mark close-on-exec
    // operation is done holding ForkLock for reading, and the fork itself
    // is done holding ForkLock for writing. At least, that's the idea.
    // There are some complications.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. security/pkg/credentialfetcher/plugin/gce.go

    	jwtPath string
    
    	// identity provider
    	identityProvider string
    
    	// token refresh
    	rotationTicker *time.Ticker
    	closing        chan bool
    	tokenCache     string
    	// mutex lock is required to avoid race condition when updating token file and token cache.
    	tokenMutex sync.RWMutex
    }
    
    // CreateGCEPlugin creates a Google credential fetcher plugin. Return the pointer to the created plugin.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    				if cfg.HasCounter(p.Program, k) && report.X <= cfg.Rate(p.Program, k) {
    					x.Counters[k] = v
    				}
    			}
    			// and the same for Stacks
    			// this can be made more efficient, when it matters
    			for k, v := range p.Stacks {
    				before, _, _ := strings.Cut(k, "\n")
    				if cfg.HasStack(p.Program, before) && report.X <= cfg.Rate(p.Program, before) {
    					x.Stacks[k] = v
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/internal/trace/trace_test.go

    			{trace.EventTaskBegin, trace.TaskID(1), []string{"task0"}},
    			{trace.EventRegionBegin, trace.TaskID(1), []string{"region0"}},
    			{trace.EventRegionBegin, trace.TaskID(1), []string{"region1"}},
    			{trace.EventLog, trace.TaskID(1), []string{"key0", "0123456789abcdef"}},
    			{trace.EventRegionEnd, trace.TaskID(1), []string{"region1"}},
    			{trace.EventRegionEnd, trace.TaskID(1), []string{"region0"}},
    			{trace.EventTaskEnd, trace.TaskID(1), []string{"task0"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. pilot/pkg/model/endpointshards.go

    	// condition is introduced where an XDS response may be generated before the update, but not
    	// completed until after a response after the update. Essentially, we transition from v0 -> v1 ->
    	// v0 -> invalidate -> v1. Reverting a change we pushed violates our contract of monotonically
    	// moving forward in version. In practice, this is pretty rare and self corrects nearly
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. pkg/kube/kclient/client_test.go

    		})
    		assert.EventuallyEqual(t, func() int {
    			return len(wasm.List("", klabels.Everything()))
    		}, 1)
    		tracker.WaitOrdered("add/name")
    	})
    }
    
    // setup some calls to ensure we trigger the race detector, if there was a race.
    func constantlyAccessForRaceDetection(stop chan struct{}, wt kclient.Untyped) {
    	for {
    		select {
    		case <-time.After(time.Millisecond):
    		case <-stop:
    			return
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/os/exec/exec_test.go

    // This test is run by cmd/dist under the race detector to verify that
    // the race detector no longer reports any problems.
    func TestStdinCloseRace(t *testing.T) {
    	t.Parallel()
    
    	cmd := helperCommand(t, "stdinClose")
    	stdin, err := cmd.StdinPipe()
    	if err != nil {
    		t.Fatalf("StdinPipe: %v", err)
    	}
    	if err := cmd.Start(); err != nil {
    		t.Fatalf("Start: %v", err)
    
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top