- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 610 for race (0.04 sec)
-
src/cmd/dist/test.go
} func (t *tester) registerRaceTests() { hdr := "Testing race detector" t.registerTest(hdr, &goTest{ variant: "race", race: true, runTests: "Output", pkg: "runtime/race", }) t.registerTest(hdr, &goTest{ variant: "race", race: true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_race_issue26995.txt
[short] skip [!race] skip go test -v -race stdout 'testing_test.go:26: directCall' stdout 'testing_test.go:27: interfaceTBCall' stdout 'testing_test.go:28: interfaceCall' -- go.mod -- module 26995-TBHelper-line-number go 1.21 -- testing_test.go -- package testing_test import "testing" type TestingT interface { Helper() Log(args ...interface{}) } func directCall(t *testing.T) { t.Helper()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 17:19:18 UTC 2024 - 662 bytes - Viewed (0) -
src/internal/race/norace.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 ( "unsafe" ) const Enabled = false func Acquire(addr unsafe.Pointer) { } func Release(addr unsafe.Pointer) { } func ReleaseMerge(addr unsafe.Pointer) { } func Disable() { } func Enable() { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 603 bytes - Viewed (0) -
src/runtime/race/testdata/rangefunc_test.go
return }() if !<-c { return } <-c } } // foo is racy, or not, depending on the value of v // (0-4 == racy, otherwise, not racy). func foo(v int) int64 { var asum atomic.Int64 for i, x := range ofSliceIndex([]int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}) { if i%5 == v { break } asum.Add(x) // don't race on asum runtime.Gosched() } return 100 + asum.Load() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/work/init.go
// Set covermode if not already set. // Ensure that -race and -covermode are compatible. if cfg.BuildCoverMode == "" { cfg.BuildCoverMode = "set" if cfg.BuildRace { // Default coverage mode is atomic when -race is set. cfg.BuildCoverMode = "atomic" } } if cfg.BuildRace && cfg.BuildCoverMode != "atomic" { base.Fatalf(`-covermode must be "atomic", not %q, when -race is enabled`, cfg.BuildCoverMode) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
test/fixedbugs/issue20780b.go
// run -race //go:build cgo && linux && amd64 // Copyright 2021 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. // Test that CL 281293 doesn't interfere with race detector // instrumentation. package main import "fmt" const N = 2e6 type Big = [N]int var sink interface{} func main() { g(0, f(0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 860 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/doc.go
// and both are correct. // // The next example uses a go statement and has a similar problem [<go1.22]. // In addition, it has a data race because the loop updates v // concurrent with the goroutines accessing it. // // for _, v := range elem { // go func() { // use(v) // incorrect, and a data race // }() // } // // A fix is the same as before. The checker also reports problems
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/internal/objabi/pkgspecial.go
// should have NoInstrument set. var extraNoInstrumentPkgs = []string{ "runtime/race", "runtime/msan", "runtime/asan", // We omit bytealg even though it's imported by runtime because it also // backs a lot of package bytes. Currently we don't have a way to omit race // instrumentation when used from the runtime while keeping race // instrumentation when used from user code. Somehow this doesn't seem to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 02:32:19 UTC 2024 - 3.8K bytes - Viewed (0) -
src/runtime/race_arm64.s
//go:build race #include "go_asm.h" #include "funcdata.h" #include "textflag.h" #include "tls_arm64.h" #include "cgo/abi_arm64.h" // The following thunks allow calling the gcc-compiled race runtime directly // from Go code without going all the way through cgo. // First, it's much faster (up to 50% speedup for real Go programs). // Second, it eliminates race-related special cases from cgocall and scheduler.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 15.5K bytes - Viewed (0) -
src/runtime/race/race_darwin_amd64.go
// Copyright 2022 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. // Code generated by mkcgo.sh. DO NOT EDIT. //go:build race package race //go:cgo_import_dynamic _Block_object_assign _Block_object_assign "" //go:cgo_import_dynamic _Block_object_dispose _Block_object_dispose "" //go:cgo_import_dynamic _NSConcreteStackBlock _NSConcreteStackBlock ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0)