Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 853 for race (0.04 sec)

  1. test/fixedbugs/issue13265.go

    // errorcheck -0 -race
    
    //go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
    
    // Copyright 2017 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.
    
    // Issue 13265: nil pointer deref.
    
    package p
    
    func f() {
        var c chan chan chan int
        for ; ; <-<-<-c {
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 438 bytes
    - Viewed (0)
  2. src/runtime/race_s390x.s

    // license that can be found in the LICENSE file.
    
    //go:build race
    
    #include "go_asm.h"
    #include "funcdata.h"
    #include "textflag.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
    - 13.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Setting an environment variable in a cgo program changes the C
    // environment. Test that this does not confuse the race detector.
    
    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    */
    import "C"
    
    import (
    	"fmt"
    	"os"
    	"sync"
    	"time"
    )
    
    func main() {
    	var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 708 bytes
    - Viewed (0)
  4. test/fixedbugs/issue8028.go

    // compile
    
    // Copyright 2014 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.
    
    // Issue 8028. Used to fail in -race mode with "non-orig name" error.
    
    package p
    
    var (
    	t2 = T{F, "s1"}
    	t1 = T{F, "s2"}
    
    	tt = [...]T{t1, t2}
    )
    
    type I interface{}
    
    type T struct {
    	F func() I
    	S string
    }
    
    type E struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 426 bytes
    - Viewed (0)
  5. test/fixedbugs/issue38093.go

    // run
    
    //go:build js
    
    // Copyright 2020 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 race condition between timers and wasm calls that led to memory corruption.
    
    package main
    
    import (
    	"os"
    	"syscall/js"
    	"time"
    )
    
    func main() {
    	ch1 := make(chan struct{})
    
    	go func() {
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 861 bytes
    - Viewed (0)
  6. src/internal/coverage/cfile/emitdata_test.go

    	}
    
    	// This test requires "go test -race -cover", meaning that we need
    	// go build, go run, and "-race" support.
    	testenv.MustHaveGoRun(t)
    	if !platform.RaceDetectorSupported(runtime.GOOS, runtime.GOARCH) ||
    		!testenv.HasCGO() {
    		t.Skip("skipped due to lack of race detector support / CGO")
    	}
    
    	// This will run a program with -cover and -race where we have a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. src/runtime/race/timer_test.go

    // Copyright 2019 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_test
    
    import (
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestTimers(t *testing.T) {
    	const goroutines = 8
    	var wg sync.WaitGroup
    	wg.Add(goroutines)
    	var mu sync.Mutex
    	for i := 0; i < goroutines; i++ {
    		go func() {
    			defer wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 576 bytes
    - Viewed (0)
  8. cmd/namespace-lock_test.go

    	expectedSource := "[namespace-lock_test.go:35:TestGetSource()]"
    	if gotSource != expectedSource {
    		t.Errorf("expected : %s, got : %s", expectedSource, gotSource)
    	}
    }
    
    // Test lock race
    func TestNSLockRace(t *testing.T) {
    	t.Skip("long test skip it")
    
    	ctx := context.Background()
    
    	for i := 0; i < 10000; i++ {
    		nsLk := newNSLock(false)
    
    		// lk1; ref=1
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/cpu-profile.go

    	func() {
    		// Create a region in the execution trace. Set and clear goroutine
    		// labels fully within that region, so we know that any CPU profile
    		// sample with the label must also be eligible for inclusion in the
    		// execution trace.
    		ctx := context.Background()
    		defer trace.StartRegion(ctx, "cpuHogger").End()
    		pprof.Do(ctx, pprof.Labels("tracing", "on"), func(ctx context.Context) {
    			cpuHogger(cpuHog1, &salt1, dur)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. test/fixedbugs/issue36516.go

    // run -race
    
    //go:build cgo && linux && amd64
    
    // Copyright 2020 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.
    
    package main
    
    import (
    	"fmt"
    	"testing"
    	"unsafe"
    )
    
    var buf [2]byte
    var x unsafe.Pointer = unsafe.Pointer(&buf[0])
    
    func main() {
    	n := testing.AllocsPerRun(1000, func() {
    		x = unsafe.Pointer(uintptr(x) + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 540 bytes
    - Viewed (0)
Back to top