Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 611 for race (0.04 sec)

  1. 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)
  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. src/internal/race/race.go

    // Copyright 2015 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
    
    package race
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    const Enabled = true
    
    func Acquire(addr unsafe.Pointer) {
    	runtime.RaceAcquire(addr)
    }
    
    func Release(addr unsafe.Pointer) {
    	runtime.RaceRelease(addr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 881 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/plan9/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 plan9 && race
    
    package plan9
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    const raceenabled = true
    
    func raceAcquire(addr unsafe.Pointer) {
    	runtime.RaceAcquire(addr)
    }
    
    func raceReleaseMerge(addr unsafe.Pointer) {
    	runtime.RaceReleaseMerge(addr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 587 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/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 windows && race
    
    package windows
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    const raceenabled = true
    
    func raceAcquire(addr unsafe.Pointer) {
    	runtime.RaceAcquire(addr)
    }
    
    func raceReleaseMerge(addr unsafe.Pointer) {
    	runtime.RaceReleaseMerge(addr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 591 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/sync/rwmutex.go

    		rw.w.Unlock()
    		if race.Enabled {
    			race.Enable()
    		}
    		return false
    	}
    	if race.Enabled {
    		race.Enable()
    		race.Acquire(unsafe.Pointer(&rw.readerSem))
    		race.Acquire(unsafe.Pointer(&rw.writerSem))
    	}
    	return true
    }
    
    // Unlock unlocks rw for writing. It is a run-time error if rw is
    // not locked for writing on entry to Unlock.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/sync/waitgroup.go

    // See the WaitGroup example.
    func (wg *WaitGroup) Add(delta int) {
    	if race.Enabled {
    		if delta < 0 {
    			// Synchronize decrements with Wait.
    			race.ReleaseMerge(unsafe.Pointer(wg))
    		}
    		race.Disable()
    		defer race.Enable()
    	}
    	state := wg.state.Add(uint64(delta) << 32)
    	v := int32(state >> 32)
    	w := uint32(state)
    	if race.Enabled && delta > 0 && v == int32(delta) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_pie_race.txt

    # go build -buildmode=pie -race main.go on Darwin should work without errors
    
    [!race] skip 'test requires race detector support'
    
    [!GOOS:darwin] ! go build -buildmode=pie -race
    [!GOOS:darwin] stderr '^-buildmode=pie not supported when -race is enabled on '$GOOS'/'$GOARCH'$'
    [!GOOS:darwin] stop 'not testing -buildmode=pie -race on platform that does not support it'
    
    go build -buildmode=pie -race bytes
    ! stderr .
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 19:13:34 UTC 2023
    - 672 bytes
    - Viewed (0)
  10. 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)
Back to top