Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 530 for Allocate (0.11 sec)

  1. pkg/api/service/testing/make.go

    func SetExternalTrafficPolicy(policy api.ServiceExternalTrafficPolicy) Tweak {
    	return func(svc *api.Service) {
    		svc.Spec.ExternalTrafficPolicy = policy
    	}
    }
    
    // SetAllocateLoadBalancerNodePorts sets the allocate LB node port field.
    func SetAllocateLoadBalancerNodePorts(val bool) Tweak {
    	return func(svc *api.Service) {
    		svc.Spec.AllocateLoadBalancerNodePorts = utilpointer.BoolPtr(val)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/http2/hpack/huffman.go

    	return lazyRootHuffmanNode
    }
    
    func buildRootHuffmanNode() {
    	if len(huffmanCodes) != 256 {
    		panic("unexpected size")
    	}
    	lazyRootHuffmanNode = newInternalNode()
    	// allocate a leaf node for each of the 256 symbols
    	leaves := new([256]node)
    
    	for sym, code := range huffmanCodes {
    		codeLen := huffmanCodeLen[sym]
    
    		cur := lazyRootHuffmanNode
    		for codeLen > 8 {
    			codeLen -= 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. src/runtime/mfinal_test.go

    			print() // force spill
    			finalize(v.(*int))
    			return [4]int64{}
    		}},
    	}
    
    	for _, tt := range finalizerTests {
    		done := make(chan bool, 1)
    		go func() {
    			// allocate struct with pointer to avoid hitting tinyalloc.
    			// Otherwise we can't be sure when the allocation will
    			// be freed.
    			type T struct {
    				v int
    				p unsafe.Pointer
    			}
    			v := &new(T).v
    			*v = 97531
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:58 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. internal/kms/context.go

    // is based on the un-escaped keys. It never returns an error.
    func (c Context) MarshalText() ([]byte, error) {
    	if len(c) == 0 {
    		return []byte{'{', '}'}, nil
    	}
    
    	// Pre-allocate a buffer - 128 bytes is an arbitrary
    	// heuristic value that seems like a good starting size.
    	b := bytes.NewBuffer(make([]byte, 0, 128))
    	if len(c) == 1 {
    		for k, v := range c {
    			b.WriteString(`{"`)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  5. pkg/dns/server/name_table.go

    				continue
    			}
    			addressList = append(addressList, svcAddress)
    		} else {
    			// The IP will be unspecified here if its headless service or if the auto
    			// IP allocation logic for service entry was unable to allocate an IP.
    			if svc.Resolution == model.Passthrough && len(svc.Ports) > 0 {
    				for _, instance := range cfg.Push.ServiceEndpointsByPort(svc, svc.Ports[0].Port, nil) {
    					// empty addresses are possible here
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 07:19:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go

    		defer func() {
    			reason := recover()
    			if reason != nil {
    				// do not wrap the sentinel ErrAbortHandler panic value
    				if reason != http.ErrAbortHandler {
    					// Same as stdlib http server code. Manually allocate stack
    					// trace buffer size to prevent excessively large logs
    					const size = 64 << 10
    					buf := make([]byte, size)
    					buf = buf[:goruntime.Stack(buf, false)]
    					reason = fmt.Sprintf("%v\n%s", reason, buf)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 14:20:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/AbstractStreamingHasher.java

        checkArgument(bufferSize % chunkSize == 0);
    
        // TODO(user): benchmark performance difference with longer buffer
        // always space for a single primitive
        this.buffer = ByteBuffer.allocate(bufferSize + 7).order(ByteOrder.LITTLE_ENDIAN);
        this.bufferSize = bufferSize;
        this.chunkSize = chunkSize;
      }
    
      /** Processes the available bytes of the buffer (at most {@code chunk} bytes). */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/endpoint_test.go

    	})
    
    	go e.client.Run()
    	// Wait for the callback to be issued.
    	select {
    	case <-callbackChan:
    		break
    	case <-time.After(time.Second):
    		t.FailNow()
    	}
    
    	respOut, err := e.allocate([]string{"ADeviceId"})
    	require.NoError(t, err)
    	require.Equal(t, resp, respOut)
    }
    
    func TestGetPreferredAllocation(t *testing.T) {
    	socket := filepath.Join(os.TempDir(), esocketName())
    	callbackCount := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  9. src/net/http/fcgi/fcgi.go

    	if len(content) != 8 {
    		return errors.New("fcgi: invalid begin request record")
    	}
    	br.role = binary.BigEndian.Uint16(content)
    	br.flags = content[2]
    	return nil
    }
    
    // for padding so we don't have to allocate all the time
    // not synchronized because we don't care what the contents are
    var pad [maxPad]byte
    
    func (h *header) init(recType recType, reqId uint16, contentLength int) {
    	h.Version = 1
    	h.Type = recType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/container_manager_windows.go

    	return &podContainerManagerStub{}
    }
    
    func (cm *containerManagerImpl) GetResources(pod *v1.Pod, container *v1.Container) (*kubecontainer.RunContainerOptions, error) {
    	opts := &kubecontainer.RunContainerOptions{}
    	// Allocate should already be called during predicateAdmitHandler.Admit(),
    	// just try to fetch device runtime information from cached state here
    	devOpts, err := cm.deviceManager.GetDeviceRunContainerOptions(pod, container)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top