Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 301 for racer (0.06 sec)

  1. src/net/dial.go

    			if c != nil {
    				c.Close()
    			}
    		}
    	}
    
    	var primary, fallback dialResult
    
    	// Start the main racer.
    	primaryCtx, primaryCancel := context.WithCancel(ctx)
    	defer primaryCancel()
    	go startRacer(primaryCtx, true)
    
    	// Start the timer for the fallback racer.
    	fallbackTimer := time.NewTimer(sd.fallbackDelay())
    	defer fallbackTimer.Stop()
    
    	for {
    		select {
    		case <-fallbackTimer.C:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/runtime/race.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build race
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    // Public race detection API, present iff build with -race.
    
    func RaceRead(addr unsafe.Pointer)
    func RaceWrite(addr unsafe.Pointer)
    func RaceReadRange(addr unsafe.Pointer, len int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. doc/go_mem.html

    <h2 id="restrictions">Implementation Restrictions for Programs Containing Data Races</h2>
    
    <p>
    The preceding section gave a formal definition of data-race-free program execution.
    This section informally describes the semantics that implementations must provide
    for programs that do contain races.
    </p>
    
    <p>
    Any implementation can, upon detecting a data race,
    report the race and halt execution of the program.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. src/runtime/extern.go

    the GOMAXPROCS limit. This package's [GOMAXPROCS] function queries and changes
    the limit.
    
    The GORACE variable configures the race detector, for programs built using -race.
    See the [Race Detector article] for details.
    
    The GOTRACEBACK variable controls the amount of output generated when a Go
    program fails due to an unrecovered panic or an unexpected runtime condition.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. src/runtime/race/testdata/chan_test.go

    		done <- true
    	}()
    	x = <-c2 // ... write to x here
    	<-done
    }
    
    func TestNoRaceChanReadWriteAsync(t *testing.T) {
    	done := make(chan bool)
    	c1 := make(chan int, 10)
    	x := 0
    	go func() {
    		c1 <- x // read of x does not race with...
    		done <- true
    	}()
    	x = <-c1 // ... write to x here
    	<-done
    }
    
    func TestNoRaceProducerConsumerUnbuffered(t *testing.T) {
    	type Task struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    	// reported here (after m.Run but before the process exits), it will print
    	// "PASS", then print the stack traces for the race, then exit with nonzero
    	// status.
    	//
    	// This is a somewhat fundamental race: because the race detector hooks into
    	// the runtime at a very low level, no matter where we put the printing it
    	// would be possible to report a race that occurs afterward. However, we could
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. pkg/kubelet/images/image_gc_manager.go

    	}
    	tracer := tracerProvider.Tracer(instrumentationScope)
    	im := &realImageGCManager{
    		runtime:       runtime,
    		policy:        policy,
    		imageRecords:  make(map[string]*imageRecord),
    		statsProvider: statsProvider,
    		recorder:      recorder,
    		nodeRef:       nodeRef,
    		tracer:        tracer,
    	}
    
    	return im, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. src/testing/sub_test.go

    }
    
    func TestRacyOutput(t *T) {
    	var runs int32  // The number of running Writes
    	var races int32 // Incremented for each race detected
    	raceDetector := func(b []byte) (int, error) {
    		// Check if some other goroutine is concurrently calling Write.
    		if atomic.LoadInt32(&runs) > 0 {
    			atomic.AddInt32(&races, 1) // Race detected!
    		}
    		atomic.AddInt32(&runs, 1)
    		defer atomic.AddInt32(&runs, -1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  9. src/internal/coverage/cfile/emitdata_test.go

    	cmd := exec.Command(testenv.GoToolPath(t), "test", "-cover", "-race")
    	cmd.Dir = filepath.Join("testdata", "issue56006")
    	b, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("go test -cover -race failed: %v\n%s", err, b)
    	}
    
    	// Don't want to see any data races in output.
    	avoid := []string{"DATA RACE"}
    	for _, no := range avoid {
    		if strings.Contains(string(b), no) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. src/runtime/trace.go

    // Go execution tracer.
    // The tracer captures a wide range of execution events like goroutine
    // creation/blocking/unblocking, syscall enter/exit/block, GC-related events,
    // changes of heap size, processor start/stop, etc and writes them to a buffer
    // in a compact form. A precise nanosecond-precision timestamp and a stack
    // trace is captured for most events.
    //
    // Tracer invariants (to keep the synchronization making sense):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top