Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 234 for race (0.09 sec)

  1. pilot/pkg/serviceregistry/kube/controller/pod.go

    	keys := pc.getPodKeys(addr)
    	if keys == nil {
    		return nil
    	}
    	res := make([]*v1.Pod, 0, len(keys))
    	for _, key := range keys {
    		p := pc.getPodByKey(key)
    		// Subtle race condition. getPodKeys is our cache over pods, while getPodByKey hits the informer cache.
    		// if these are out of sync, p may be nil (pod was deleted).
    		if p != nil {
    			res = append(res, p)
    		}
    	}
    	return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/telemetry/start.go

    			return false
    		}
    		// There's a possible race here where two processes check the
    		// token file and see that it's older than the period, then the
    		// first one removes it and creates another, and then a second one
    		// removes the newly created file and creates yet another
    		// file. Then both processes would act as though they had the token.
    		// This is very rare, but it's also okay because we're only grabbing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	// CAS and event emission to appear atomic to the tracer.
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.GoPark(traceBlockPreempted, 0)
    	}
    	casfrom_Gscanstatus(gp, _Gscan|_Gpreempted, _Gpreempted)
    	if trace.ok() {
    		traceRelease(trace)
    	}
    	schedule()
    }
    
    // goyield is like Gosched, but it:
    // - emits a GoPreempt trace event instead of a GoSched trace event
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/aggregate/controller_test.go

    		panic("--- registry has been run twice ---")
    	}
    	rr.running.Store(true)
    	<-stop
    }
    
    func expectRunningOrFail(t *testing.T, ctrl *Controller, want bool) {
    	// running gets flipped in a goroutine, retry to avoid race
    	retry.UntilSuccessOrFail(t, func() error {
    		for _, registry := range ctrl.registries {
    			if running := registry.Instance.(*RunnableRegistry).running.Load(); running != want {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. pkg/kube/kclient/client.go

    	// AddEventHandler is safe to call under the lock. This will *enqueue* all existing items, but not block on processing them,
    	// so the timing is quick.
    	// If we do this outside the lock, we can hit a subtle race condition where we have started processing items before they
    	// are registered (in n.registeredHandlers); this can cause the dynamic filtering to miss events
    	reg, err := n.informer.AddEventHandler(fh)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. 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)
  8. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    	assert.ChannelIsEmpty(t, writes)
    
    	defaultGateway.Annotations["foo"] = "bar"
    	gws.Update(defaultGateway)
    	expectReconciled()
    	// We should not be updating the version, its already set. Setting it introduces a possible race condition
    	// since we use SSA so there is no conflict checks.
    	assert.ChannelIsEmpty(t, writes)
    
    	// Somehow the annotation is removed - it should be added back
    	defaultGateway.Annotations = map[string]string{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        thread.join();
        // It's possible to race and suspend the thread just before the park call actually takes effect,
        // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after
        // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. src/go/types/instantiate.go

    		res = sig
    
    	default:
    		// only types and functions can be generic
    		panic(fmt.Sprintf("%v: cannot instantiate %v", pos, orig))
    	}
    
    	// Update all contexts; it's possible that we've lost a race.
    	return updateContexts(res)
    }
    
    // validateTArgLen checks that the number of type arguments (got) matches the
    // number of type parameters (want); if they don't match an error is reported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top