Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 6,541 for RUNTIME (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/splice_test.go

    import (
    	"bytes"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/runtime"
    )
    
    func TestSpliceBuffer(t *testing.T) {
    	testBytes0 := []byte{0x01, 0x02, 0x03, 0x04}
    	testBytes1 := []byte{0x04, 0x03, 0x02, 0x02}
    
    	testCases := []struct {
    		name string
    		run  func(sb runtime.Splice, buf *bytes.Buffer)
    	}{
    		{
    			name: "Basic Write",
    			run: func(sb runtime.Splice, buf *bytes.Buffer) {
    				sb.Write(testBytes0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/race/testdata/finalizer_test.go

    // license that can be found in the LICENSE file.
    
    package race_test
    
    import (
    	"runtime"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestNoRaceFin(t *testing.T) {
    	c := make(chan bool)
    	go func() {
    		x := new(string)
    		runtime.SetFinalizer(x, func(x *string) {
    			*x = "foo"
    		})
    		*x = "bar"
    		c <- true
    	}()
    	<-c
    	runtime.GC()
    	time.Sleep(100 * time.Millisecond)
    }
    
    var finVar struct {
    	sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go

    	if err := runtime.SetField(o.APIVersion, v, "APIVersion"); err != nil {
    		return err
    	}
    	if err := runtime.SetField(o.Kind, v, "Kind"); err != nil {
    		return err
    	}
    	if err := runtime.SetField(o.Name, v, "Name"); err != nil {
    		return err
    	}
    	if err := runtime.SetField(o.UID, v, "UID"); err != nil {
    		return err
    	}
    	if o.Controller != nil {
    		controller := *(o.Controller)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 16.5K bytes
    - Viewed (0)
  4. src/runtime/gcinfo_test.go

    		runtime.KeepAlive(x)
    	}
    	{
    		var x []string
    		verifyGCInfo(t, "stack slice", &x, infoSlice)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x any
    		verifyGCInfo(t, "stack eface", &x, infoEface)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x Iface
    		verifyGCInfo(t, "stack iface", &x, infoIface)
    		runtime.KeepAlive(x)
    	}
    
    	for i := 0; i < 10; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/MultipleVariantSelectionIntegrationTest.groovy

            } else {
                resolve.expectGraph {
                    root(":", ":test:") {
                        edge('org:test:1.0', 'org:test:1.0')
                        module('org:test:1.0') {
                            maybeByConflictResolution()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 22:29:19 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/symtab.go

    	ctxt.xdefine("runtime.rodata", sym.SRODATA, 0)
    	ctxt.xdefine("runtime.erodata", sym.SRODATA, 0)
    	ctxt.xdefine("runtime.types", sym.SRODATA, 0)
    	ctxt.xdefine("runtime.etypes", sym.SRODATA, 0)
    	ctxt.xdefine("runtime.noptrdata", sym.SNOPTRDATA, 0)
    	ctxt.xdefine("runtime.enoptrdata", sym.SNOPTRDATA, 0)
    	ctxt.xdefine("runtime.data", sym.SDATA, 0)
    	ctxt.xdefine("runtime.edata", sym.SDATA, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go

    	// contract as runtime.VersionedEncoder.
    	Encode(obj runtime.Object) error
    }
    
    // Decoder is a runtime.Decoder from a stream.
    type Decoder interface {
    	// Decode will return io.EOF when no more objects are available.
    	Decode(defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error)
    	// Close closes the underlying stream.
    	Close() error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 25 14:51:36 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. test/fixedbugs/issue8048.go

    	// find the liveness at the call to runtime.GC.
    	// It will think y is live, but y is uninitialized,
    	// and the runtime will crash detecting a bad slice.
    	// The runtime should see that there are no defers
    	// corresponding to this panicked frame and ignore
    	// the frame entirely.
    	var x *int
    	var b bool
    	if b {
    		y := make([]int, 1)
    		runtime.GC()
    		x = &y[0]
    	}
    	println(*x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/coro.go

    }
    
    func iterLock(yield func(int) bool) {
    	for range 3 {
    		runtime.LockOSThread()
    		runtime.UnlockOSThread()
    
    		if !yield(5) {
    			return
    		}
    	}
    }
    
    func iterLockYield(yield func(int) bool) {
    	for range 3 {
    		runtime.LockOSThread()
    		ok := yield(5)
    		runtime.UnlockOSThread()
    		if !ok {
    			return
    		}
    	}
    }
    
    func iterYieldNewG(yield func(int) bool) {
    	for range 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go

    	"crypto/rand"
    	"io/ioutil"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	testapigroupv1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/runtime/serializer/protobuf"
    )
    
    func BenchmarkProtobufEncoder(b *testing.B) {
    	benchmarkEncodeFor(b, protobuf.NewSerializer(nil, nil))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top