Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 270 for ptr (0.02 sec)

  1. src/runtime/pinner.go

    					pinnerLeakPanic()
    				}
    			})
    		}
    	}
    	ptr := pinnerGetPtr(&pointer)
    	if setPinned(ptr, true) {
    		p.refs = append(p.refs, ptr)
    	}
    }
    
    // Unpin unpins all pinned objects of the [Pinner].
    func (p *Pinner) Unpin() {
    	p.pinner.unpin()
    
    	mp := acquirem()
    	if pp := mp.p.ptr(); pp != nil && pp.pinnerCache == nil {
    		// Put the pinner back in the cache, but only if the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    				debugPrintf("releaseLock %s: ptr=%v\n", c.name, c.ptr)
    			}
    		}
    
    		if extra := state.extra(); extra != 0 && c.ptr.count != nil {
    			if !c.state.update(&state, state.clearExtra()) {
    				continue
    			}
    			sum := c.add(extra)
    			debugPrintf("releaseLock %s: flush extra=%d -> count=%d\n", c.name, extra, sum)
    		}
    
    		// Took care of refreshing ptr and flushing extra.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    									OptionalOldSelf: ptr.To(true),
    								},
    							},
    							Properties: map[string]apiextensions.JSONSchemaProps{
    								"subRule": {
    									Type: "object",
    									XValidations: apiextensions.ValidationRules{
    										{
    											Rule:            "isTest == true",
    											Message:         "isTest should be true.",
    											OptionalOldSelf: ptr.To(true),
    										},
    									},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  4. src/runtime/pinner_test.go

    	var pinner runtime.Pinner
    	ptr := new(obj)
    	pinner.Pin(ptr)
    	b.ResetTimer()
    	for n := 0; n < b.N; n++ {
    		runtime.IsPinned(unsafe.Pointer(ptr))
    	}
    	pinner.Unpin()
    }
    
    func BenchmarkPinnerIsPinnedOnUnpinned(b *testing.B) {
    	ptr := new(obj)
    	b.ResetTimer()
    	for n := 0; n < b.N; n++ {
    		runtime.IsPinned(unsafe.Pointer(ptr))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:36:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/validation/validation_test.go

    			},
    			expectedErrs: field.ErrorList{field.Invalid(newPath.Child("KubeConntrackConfiguration.MaxPerCore"), ptr.To[int32](-1), "must be greater than or equal to 0")},
    		},
    		"invalid minimum < 0": {
    			config: kubeproxyconfig.KubeProxyConntrackConfiguration{
    				MaxPerCore:            ptr.To[int32](1),
    				Min:                   ptr.To[int32](-1),
    				TCPEstablishedTimeout: &metav1.Duration{Duration: 5 * time.Second},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. src/unsafe/unsafe.go

    // and whose length and capacity are len.
    // Slice(ptr, len) is equivalent to
    //
    //	(*[len]ArbitraryType)(unsafe.Pointer(ptr))[:]
    //
    // except that, as a special case, if ptr is nil and len is zero,
    // Slice returns nil.
    //
    // The len argument must be of integer type or an untyped constant.
    // A constant len argument must be non-negative and representable by a value of type int;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    }
    
    // get returns the value of field f in cfg.
    func (cfg *config) get(f configField) string {
    	switch ptr := cfg.fieldPtr(f).(type) {
    	case *string:
    		return *ptr
    	case *int:
    		return fmt.Sprint(*ptr)
    	case *float64:
    		return fmt.Sprint(*ptr)
    	case *bool:
    		return fmt.Sprint(*ptr)
    	}
    	panic(fmt.Sprintf("unsupported config field type %v", f.field.Type))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. pkg/webhooks/validation/controller/controller_test.go

    	webhookConfigWithCABundleFail = webhookConfigWithCABundleIgnore.DeepCopyObject().(*admission.ValidatingWebhookConfiguration)
    	webhookConfigWithCABundleFail.Webhooks[0].FailurePolicy = ptr.Of(admission.Fail)
    	webhookConfigWithCABundleFail.Webhooks[1].FailurePolicy = ptr.Of(admission.Fail)
    }
    
    const (
    	istiod    = "istio-revision"
    	namespace = "istio-system"
    	revision  = "revision"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 03:21:04 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go

    				NominalConcurrencyShares: ptr.To[int32](42),
    				LendablePercent:          ptr.To[int32](33),
    			},
    		},
    	}
    	ple2 := &flowcontrolv1.PriorityLevelConfiguration{
    		ObjectMeta: metav1.ObjectMeta{Name: "exempt"},
    		Spec: flowcontrolv1.PriorityLevelConfigurationSpec{
    			Type: flowcontrolv1.PriorityLevelEnablementExempt,
    			Exempt: &flowcontrolv1.ExemptPriorityLevelConfiguration{
    				NominalConcurrencyShares: ptr.To[int32](24),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go

    		n := field.name
    		help := configHelp[n]
    		var setter func()
    		switch ptr := cfg.fieldPtr(field).(type) {
    		case *bool:
    			f := flag.Bool(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *int:
    			f := flag.Int(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *float64:
    			f := flag.Float64(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *string:
    			if len(field.choices) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top