Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for race (0.07 sec)

  1. 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)
  2. src/testing/testing.go

    // checkRaces checks whether the global count of data race errors has increased
    // since c's count was last reset.
    //
    // If so, it marks c as having failed due to those races (logging an error for
    // the first such race), and updates the race counts for the parents of c so
    // that if they are currently suspended (such as in a call to T.Run) they will
    // not log separate errors for the race(s).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    // simpler code to avoid floating point.
    func nextSampleNoFP() uintptr {
    	// Set first allocation sample size.
    	rate := MemProfileRate
    	if rate > 0x3fffffff { // make 2*rate not overflow
    		rate = 0x3fffffff
    	}
    	if rate != 0 {
    		return uintptr(cheaprandn(uint32(2 * rate)))
    	}
    	return 0
    }
    
    type persistentAlloc struct {
    	base *notInHeap
    	off  uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/syscall/syscall_windows.go

    	}
    	return err
    }
    
    func WriteFile(fd Handle, p []byte, done *uint32, overlapped *Overlapped) error {
    	if race.Enabled {
    		race.ReleaseMerge(unsafe.Pointer(&ioSync))
    	}
    	err := writeFile(fd, p, done, overlapped)
    	if race.Enabled && *done > 0 {
    		race.ReadRange(unsafe.Pointer(&p[0]), int(*done))
    	}
    	if msan.Enabled && *done > 0 {
    		msan.Read(unsafe.Pointer(&p[0]), uintptr(*done))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	newCRD := newObj.(*apiextensionsv1.CustomResourceDefinition)
    
    	r.customStorageLock.Lock()
    	defer r.customStorageLock.Unlock()
    
    	// Add CRD to the establishing controller queue.
    	// For HA clusters, we want to prevent race conditions when changing status to Established,
    	// so we want to be sure that CRD is Installing at least for 5 seconds before Establishing it.
    	// TODO: find a real HA safe checkpointing mechanism instead of an arbitrary wait.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/lib.go

    var internalpkg = []string{
    	"crypto/internal/boring",
    	"crypto/internal/boring/syso",
    	"crypto/x509",
    	"net",
    	"os/user",
    	"runtime/cgo",
    	"runtime/race",
    	"runtime/race/internal/amd64v1",
    	"runtime/race/internal/amd64v3",
    	"runtime/msan",
    	"runtime/asan",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof_test.go

    // rate / 10.
    func blockFrequentShort(rate int) {
    	for i := 0; i < 100000; i++ {
    		blockevent(int64(rate/10), 1)
    	}
    }
    
    // blockFrequentShort produces 10000 block events with an average duration of
    // rate.
    func blockInfrequentLong(rate int) {
    	for i := 0; i < 10000; i++ {
    		blockevent(int64(rate), 1)
    	}
    }
    
    // Used by TestBlockProfileBias.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/manager_test.go

    	}{
    		{
    			description: "GetTopologyHints data race when update device",
    			count:       10,
    			devices:     devs,
    			testfunc: func(manager *wrappedManagerImpl) {
    				manager.GetTopologyHints(testPod, &testPod.Spec.Containers[0])
    			},
    		},
    		{
    			description: "GetPodTopologyHints data race when update device",
    			count:       10,
    			devices:     devs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  9. src/runtime/mheap.go

    	case spanAllocWorkBuf:
    		atomic.Xaddint64(&stats.inWorkBufs, int64(nbytes))
    	}
    	memstats.heapStats.release()
    
    	// Trace the span alloc.
    	if traceAllocFreeEnabled() {
    		trace := traceTryAcquire()
    		if trace.ok() {
    			trace.SpanAlloc(s)
    			traceRelease(trace)
    		}
    	}
    	return s
    }
    
    // initSpan initializes a blank span s which will represent the range
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/elf.go

    	out.Write8(0)
    	out.Write32(ELF_NOTE_NETBSD_VERSION)
    
    	return int(sh.Size)
    }
    
    // The race detector can't handle ASLR (address space layout randomization).
    // ASLR is on by default for NetBSD, so we turn the ASLR off explicitly
    // using a magic elf Note when building race binaries.
    
    func elfnetbsdpax(sh *ElfShdr, startva uint64, resoff uint64) int {
    	n := int(Rnd(4, 4) + Rnd(4, 4))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top