- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 332 for race (0.05 sec)
-
src/internal/testlog/exit.go
panicOnExit0.mu.Lock() defer panicOnExit0.mu.Unlock() return panicOnExit0.val } // panicOnExit0 is the flag used for PanicOnExit0. This uses a lock // because the value can be cleared via a timer call that may race // with calls to os.Exit var panicOnExit0 struct { mu sync.Mutex val bool } // SetPanicOnExit0 sets panicOnExit0 to v. // // SetPanicOnExit0 should be an internal detail,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 1.3K bytes - Viewed (0) -
src/runtime/ehooks_test.go
// running if CGO_ENABLED=0 is in effect. haverace := platform.RaceDetectorSupported(runtime.GOOS, runtime.GOARCH) if haverace && testenv.HasCGO() { bmodes = append(bmodes, "-race") } for _, bmode := range bmodes { scenarios := []struct { mode string expected string musthave []string }{ { mode: "simple", expected: "bar foo", }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/conntest.go
// The tests should not produce any false positives, but may experience // false negatives. Thus, some issues may only be detected when the test is // run multiple times. For maximal effectiveness, run the tests under the // race detector. func TestConn(t *testing.T, mp MakePipe) { t.Run("BasicIO", func(t *testing.T) { timeoutWrapper(t, mp, testBasicIO) }) t.Run("PingPong", func(t *testing.T) { timeoutWrapper(t, mp, testPingPong) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 12.2K bytes - Viewed (0) -
cni/pkg/repair/repair.go
) var repairLog = scopes.CNIAgent func StartRepair(ctx context.Context, cfg config.RepairConfig) { if !cfg.Enabled { repairLog.Info("CNI repair is disable.") return } repairLog.Info("Start CNI race condition repair.") client, err := clientSetup() if err != nil { repairLog.Fatalf("CNI repair could not construct clientSet: %s", err) } rc, err := NewRepairController(client, cfg) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:18 UTC 2024 - 1.5K bytes - Viewed (0) -
src/unique/handle.go
setupMake.Do(registerCleanup) ma = addUniqueMap[T](typ) } m := ma.(*uniqueMap[T]) // Keep around any values we allocate for insertion. There // are a few different ways we can race with other threads // and create values that we might discard. By keeping // the first one we make around, we can avoid generating // more than one per racing thread. var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/bitrot-streaming.go
// Close the underlying writer. // This will also flush the ring buffer if used. err := b.iow.Close() // Wait for all data to be written before returning else it causes race conditions. // Race condition is because of io.PipeWriter implementation. i.e consider the following // sequent of operations: // 1) pipe.Write() // 2) pipe.Close()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 6.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
"plan 1 TLS connected", ) taskFaker.assertNoMoreTasks() } /** * This test performs two races: * * * The first race is between plan0 and plan1, with a 250 ms head start for plan0. * * The second race is between plan2 and plan3, with a 250 ms head start for plan2. * * We get plan0 and plan1 from the route planner.
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 24 04:40:49 UTC 2024 - 20.9K bytes - Viewed (0) -
pkg/util/filesystem/util_windows_test.go
// Create a temporary file that will simulate the Unix domain socket file in a // not-yet-ready state. We need this because the Kubelet keeps an eye on file // changes and acts on them, leading to potential race issues as described in // the referenced issue above f, err := os.CreateTemp("", "test-domain-socket") require.NoErrorf(t, err, "Failed to create file for test purposes: %v", err) testFile := f.Name() f.Close()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 09:10:26 UTC 2024 - 3.2K bytes - Viewed (0) -
src/sync/atomic/asm.s
// Copyright 2011 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 #include "textflag.h" TEXT ·SwapInt32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xchg(SB) TEXT ·SwapUint32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xchg(SB) TEXT ·SwapInt64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xchg64(SB)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/atomic_pointer.go
cgoCheckPtrWrite(ptr, new) } return atomic.Casp1(ptr, old, new) } // Like above, but implement in terms of sync/atomic's uintptr operations. // We cannot just call the runtime routines, because the race detector expects // to be able to intercept the sync/atomic forms but not the runtime forms. //go:linkname sync_atomic_StoreUintptr sync/atomic.StoreUintptr func sync_atomic_StoreUintptr(ptr *uintptr, new uintptr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0)