Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 6,541 for RUNTIME (0.1 sec)

  1. pkg/registry/resource/resourceclaimtemplate/strategy.go

    	resourceClaimTemplate := obj.(*resource.ResourceClaimTemplate)
    	return validation.ValidateClaimTemplate(resourceClaimTemplate)
    }
    
    func (resourceClaimTemplateStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    	return nil
    }
    
    func (resourceClaimTemplateStrategy) Canonicalize(obj runtime.Object) {
    }
    
    func (resourceClaimTemplateStrategy) AllowCreateOnUpdate() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go

    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/conversion"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/runtime/serializer"
    	runtimetesting "k8s.io/apimachinery/pkg/runtime/testing"
    	"k8s.io/apimachinery/pkg/util/diff"
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    )
    
    type testConversions struct {
    	internalToExternalCalls int
    	externalToInternalCalls int
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go

    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    	"sigs.k8s.io/structured-merge-diff/v4/merge"
    	"sigs.k8s.io/structured-merge-diff/v4/typed"
    )
    
    type structuredMergeManager struct {
    	typeConverter   TypeConverter
    	objectConverter runtime.ObjectConvertor
    	objectDefaulter runtime.ObjectDefaulter
    	groupVersion    schema.GroupVersion
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:55:50 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun.go

    	if dryRun {
    		var current runtime.Object
    		v, err := conversion.EnforcePtr(destination)
    		if err != nil {
    			return fmt.Errorf("unable to convert output object to pointer: %v", err)
    		}
    		if u, ok := v.Addr().Interface().(runtime.Unstructured); ok {
    			current = u.NewEmptyInstance()
    		} else {
    			current = reflect.New(v.Type()).Interface().(runtime.Object)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 20:40:48 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. test/fixedbugs/bug472.dir/p1.go

    // license that can be found in the LICENSE file.
    
    package p1
    
    import "runtime"
    
    func E() func() int { return runtime.NumCPU }
    
    func F() func() { return runtime.Gosched }
    
    func G() func() string { return runtime.GOROOT }
    
    func H() func() { return runtime.GC }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 420 bytes
    - Viewed (0)
  6. test/fixedbugs/issue5963.go

    fatal error: internal lockOSThread error
    
    goroutine 2 [runnable]:
    runtime.MHeap_Scavenger()
    	/Users/rsc/g/go/src/pkg/runtime/mheap.c:438
    runtime.goexit()
    	/Users/rsc/g/go/src/pkg/runtime/proc.c:1313
    created by runtime.main
    	/Users/rsc/g/go/src/pkg/runtime/proc.c:165
    
    goroutine 3 [runnable]:
    main.funcĀ·002()
    	/Users/rsc/g/go/test/fixedbugs/issue5963.go:22
    created by main.initĀ·1
    	/Users/rsc/g/go/test/fixedbugs/issue5963.go:24 +0xb9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 929 bytes
    - Viewed (0)
  7. src/runtime/example_test.go

    package runtime_test
    
    import (
    	"fmt"
    	"runtime"
    	"strings"
    )
    
    func ExampleFrames() {
    	c := func() {
    		// Ask runtime.Callers for up to 10 PCs, including runtime.Callers itself.
    		pc := make([]uintptr, 10)
    		n := runtime.Callers(0, pc)
    		if n == 0 {
    			// No PCs available. This can happen if the first argument to
    			// runtime.Callers is large.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 18 22:05:09 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  8. pkg/registry/core/resourcequota/strategy.go

    func (resourcequotaStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	resourcequota := obj.(*api.ResourceQuota)
    	resourcequota.Status = api.ResourceQuotaStatus{}
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (resourcequotaStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newResourcequota := obj.(*api.ResourceQuota)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 18 17:07:29 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  9. test/fixedbugs/issue9110.go

    package main
    
    import (
    	"runtime"
    	"runtime/debug"
    	"sync"
    	"time"
    )
    
    func main() {
    	runtime.GOMAXPROCS(1)
    	debug.SetGCPercent(1000000) // only GC when we ask for GC
    
    	var stats, stats1, stats2 runtime.MemStats
    
    	release := func() {}
    	for i := 0; i < 20; i++ {
    		if i == 10 {
    			// Should be warmed up by now.
    			runtime.ReadMemStats(&stats1)
    		}
    
    		c := make(chan int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15277.go

    	}
    	x = new(big)
    	if delta := inuse() - start; delta < 9<<20 {
    		println("second alloc: expected delta at least 9MB, got: ", delta)
    	}
    	runtime.KeepAlive(x)
    }
    
    func main() {
    	x := inuse()
    	f(new(big), x)
    }
    
    func inuse() int64 {
    	runtime.GC()
    	var st runtime.MemStats
    	runtime.ReadMemStats(&st)
    	return int64(st.Alloc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 851 bytes
    - Viewed (0)
Back to top