Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 795 for racer (0.24 sec)

  1. src/iter/iter.go

    			race.Release(unsafe.Pointer(&racer))
    		}()
    		seq(yield)
    		var k0 K
    		var v0 V
    		k, v, ok = k0, v0, false
    		seqDone = true
    	})
    	next = func() (k1 K, v1 V, ok1 bool) {
    		race.Write(unsafe.Pointer(&racer)) // detect races
    
    		if done {
    			return
    		}
    		if yieldNext {
    			panic("iter.Pull2: next called again before yield")
    		}
    		yieldNext = true
    		race.Release(unsafe.Pointer(&racer))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. src/runtime/race/output_test.go

    func startRacer(x *int, done chan bool) {
    	xptr = x
    	donechan = done
    	go racer()
    }
    func racer() {
    	time.Sleep(10*time.Millisecond)
    	store(xptr, 42)
    	donechan <- true
    }
    `, []string{`==================
    WARNING: DATA RACE
    Write at 0x[0-9,a-f]+ by goroutine [0-9]:
      main\.store\(\)
          .+/main\.go:14 \+0x[0-9,a-f]+
      main\.racer\(\)
          .+/main\.go:23 \+0x[0-9,a-f]+
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 20:44:25 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/test/race.go

    // or run tests. This is a non-test file to hold cases that (used
    // to) trigger compiler data races, so they will be exercised on
    // the racecompile builder.
    //
    // This package is not imported so functions here are not included
    // in the actual compiler.
    
    // Issue 55357: data race when building multiple instantiations of
    // generic closures with _ parameters.
    func Issue55357() {
    	type U struct {
    		A int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 20 22:16:41 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. src/runtime/race0.go

    func raceinit() (uintptr, uintptr)                                          { throw("race"); return 0, 0 }
    func racefini()                                                             { throw("race") }
    func raceproccreate() uintptr                                               { throw("race"); return 0 }
    func raceprocdestroy(ctx uintptr)                                           { throw("race") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/race0.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos
    
    package unix
    
    import (
    	"unsafe"
    )
    
    const raceenabled = false
    
    func raceAcquire(addr unsafe.Pointer) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 553 bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/vendor/golang.org/x/sys/plan9/race0.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build plan9 && !race
    
    package plan9
    
    import (
    	"unsafe"
    )
    
    const raceenabled = false
    
    func raceAcquire(addr unsafe.Pointer) {
    }
    
    func raceReleaseMerge(addr unsafe.Pointer) {
    }
    
    func raceReadRange(addr unsafe.Pointer, len int) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 450 bytes
    - Viewed (0)
  9. src/sync/atomic/race.s

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build race
    
    // This file is here only to allow external functions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 294 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/race.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (darwin && race) || (linux && race) || (freebsd && race)
    
    package unix
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    const raceenabled = true
    
    func raceAcquire(addr unsafe.Pointer) {
    	runtime.RaceAcquire(addr)
    }
    
    func raceReleaseMerge(addr unsafe.Pointer) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 629 bytes
    - Viewed (0)
Back to top