- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 339 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) -
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) -
src/internal/godebug/godebug_test.go
} } // TestPanicNilRace checks for a race in the runtime caused by use of runtime // atomics (not visible to usual race detection) to install the counter for // non-default panic(nil) semantics. For #64649. func TestPanicNilRace(t *testing.T) { if !race.Enabled { t.Skip("Skipping test intended for use with -race.") } if os.Getenv("GODEBUG") != "panicnil=1" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4K bytes - Viewed (0) -
src/sync/mutex.go
if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) { if race.Enabled { race.Acquire(unsafe.Pointer(m)) } return } // Slow path (outlined so that the fast path can be inlined) m.lockSlow() } // TryLock tries to lock m and reports whether it succeeded. // // Note that while correct uses of TryLock do exist, they are rare, // and use of TryLock is often a sign of a deeper problem
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 8.4K bytes - Viewed (0)