- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 488 for race (0.04 sec)
-
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) -
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) -
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) -
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) -
src/iter/iter.go
seqDone = true }) next = func() (v1 V, ok1 bool) { race.Write(unsafe.Pointer(&racer)) // detect races if done { return } if yieldNext { panic("iter.Pull: next called again before yield") } yieldNext = true race.Release(unsafe.Pointer(&racer)) coroswitch(c) race.Acquire(unsafe.Pointer(&racer)) // Propagate panics and goexits from seq. if panicValue != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 6.6K bytes - Viewed (0) -
Makefile
test-configfile: install-race @env bash $(PWD)/docs/distributed/distributed-from-config-file.sh test-upgrade: install-race @echo "Running minio upgrade tests" @(env bash $(PWD)/buildscripts/minio-upgrade.sh) test-race: verifiers build ## builds minio, runs linters, tests (race) @echo "Running unit tests under -race" @(env bash $(PWD)/buildscripts/race.sh) test-iam: install-race ## verify IAM (external IDP, etcd backends)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 10.1K bytes - Viewed (0) -
src/sync/pool.go
if x == nil { return } if race.Enabled { if runtime_randn(4) == 0 { // Randomly drop x on floor. return } race.ReleaseMerge(poolRaceAddr(x)) race.Disable() } l, _ := p.pin() if l.private == nil { l.private = x } else { l.shared.pushHead(x) } runtime_procUnpin() if race.Enabled { race.Enable() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_sync_atomic_import.txt
go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic go test -short -covermode=atomic -run=TestAnd8 internal/runtime/atomic # Skip remainder if no race detector support. [!race] skip go test -short -cover -race -run=TestStoreInt64 sync/atomic go test -short -cover -race -run=TestAnd8 internal/runtime/atomic -- go.mod -- module coverdep go 1.16 -- p.go -- package p import _ "coverdep/p1" func F() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 00:18:30 UTC 2024 - 1011 bytes - Viewed (0) -
src/syscall/syscall_unix.go
} return } func Write(fd int, p []byte) (n int, err error) { if race.Enabled { race.ReleaseMerge(unsafe.Pointer(&ioSync)) } if faketime && (fd == 1 || fd == 2) { n = faketimeWrite(fd, p) if n < 0 { n, err = 0, errnoErr(Errno(-n)) } } else { n, err = write(fd, p) } if race.Enabled && n > 0 { race.ReadRange(unsafe.Pointer(&p[0]), n) } if msan.Enabled && n > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 16:19:26 UTC 2024 - 12.2K bytes - Viewed (0) -
tests/integration/pilot/cni_race_test.go
Run(func(t framework.TestContext) { if !i.Settings().EnableCNI { t.Skip("CNI race condition mitigation is only tested when CNI is enabled.") } c := t.Clusters().Default() ns := namespace.NewOrFail(t, t, namespace.Config{ Prefix: "cni-race", Inject: true, }) // Create a echo deployment in the cni-race namespace. t.Logf("Deploy an echo instance in namespace %v...", ns.Name()) deployment.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 16:52:52 UTC 2024 - 6.4K bytes - Viewed (0)