Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,439 for RUNTIME (0.24 sec)

  1. src/internal/trace/testdata/testprog/stress-start-stop.go

    // blocked goroutines, LockOSThread, pipes, and GOMAXPROCS).
    
    //go:build ignore
    
    package main
    
    import (
    	"bytes"
    	"io"
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"time"
    )
    
    func main() {
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8))
    	outerDone := make(chan bool)
    
    	go func() {
    		defer func() {
    			outerDone <- true
    		}()
    
    		var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/stress.go

    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	defer trace.Stop()
    
    	procs := runtime.GOMAXPROCS(10)
    	time.Sleep(50 * time.Millisecond) // test proc stop/start events
    
    	go func() {
    		runtime.LockOSThread()
    		for {
    			select {
    			case <-done:
    				return
    			default:
    				runtime.Gosched()
    			}
    		}
    	}()
    
    	runtime.GC()
    	// Trigger GC from malloc.
    	n := 512
    	for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. pkg/config/schema/kubeclient/resources.gen.go

    package kubeclient
    
    import (
    	"context"
    	"fmt"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/watch"
    	"k8s.io/client-go/tools/cache"
    
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube/informerfactory"
    	ktypes "istio.io/istio/pkg/kube/kubetypes"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. pkg/apis/storage/v1beta1/defaults_test.go

    	storagev1beta1 "k8s.io/api/storage/v1beta1"
    	"k8s.io/apimachinery/pkg/runtime"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	_ "k8s.io/kubernetes/pkg/apis/storage/install"
    	"k8s.io/kubernetes/pkg/features"
    )
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/cpu-profile.go

    			//
    			// TODO: Make the symbolization done by the execution tracer and CPU
    			// profiler match up even in these harder cases. See #53378.
    			switch leaf {
    			case "runtime._System", "runtime._GC", "runtime._ExternalCode", "runtime._VDSO":
    				continue
    			}
    			stack := strings.Join(fns, "|")
    			samples := int(s.Value[0])
    			pprofStacks[stack] += samples
    		}
    	}
    	for stack, samples := range pprofStacks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. pkg/apis/storage/v1/defaults_test.go

    	storagev1 "k8s.io/api/storage/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	_ "k8s.io/kubernetes/pkg/apis/storage/install"
    	"k8s.io/kubernetes/pkg/features"
    )
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInKotlinIntegrationTest.groovy

            // Runtime.exec() overloads
            fromString()      | "Runtime.getRuntime().exec(command)"                                                | ""                | ""
            fromStringArray() | "Runtime.getRuntime().exec(command)"                                                | ""                | ""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. pkg/config/schema/kubetypes/common.go

    // limitations under the License.
    
    package kubetypes
    
    import (
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    
    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/typemap"
    )
    
    func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource {
    	if gk, ok := getGvk(ptr.Empty[T]()); ok {
    		gr, ok := gvk.ToGVR(gk)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/internal/weak/pointer_test.go

    	done := make(chan struct{}, 1)
    	runtime.SetFinalizer(bt, func(bt *T) {
    		if wt.Strong() != nil {
    			t.Errorf("weak pointer did not go nil before finalizer ran")
    		}
    		done <- struct{}{}
    	})
    
    	// Make sure the weak pointer stays around while bt is live.
    	runtime.GC()
    	if wt.Strong() == nil {
    		t.Errorf("weak pointer went nil too soon")
    	}
    	runtime.KeepAlive(bt)
    
    	// bt is no longer referenced.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/internal/trace/trace_test.go

    			}
    		}
    	})
    }
    
    func TestTraceStress(t *testing.T) {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		t.Skip("no os.Pipe on " + runtime.GOOS)
    	}
    	testTraceProg(t, "stress.go", nil)
    }
    
    func TestTraceStressStartStop(t *testing.T) {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		t.Skip("no os.Pipe on " + runtime.GOOS)
    	}
    	testTraceProg(t, "stress-start-stop.go", nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top