Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,371 for Allocate (0.15 sec)

  1. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			defaultCPUSet: testCase.stDefaultCPUSet,
    		}
    		pod := testCase.pod
    
    		// allocate
    		for _, container := range append(pod.Spec.InitContainers, pod.Spec.Containers...) {
    			policy.Allocate(st, pod, &container)
    		}
    		if !reflect.DeepEqual(st.defaultCPUSet, testCase.expCSetAfterAlloc) {
    			t.Errorf("StaticPolicy Allocate() error (%v). expected default cpuset %v but got %v",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue59411.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"math"
    	"reflect"
    )
    
    func main() {
    	for i := 0; i < 100; i++ {
    		f()
    		g()
    	}
    }
    
    func f() {
    	// Allocate map.
    	m := map[float64]int{}
    	// Fill to just before a growth trigger.
    	const N = 13 << 4 // 6.5 * 2 * 2^k
    	for i := 0; i < N; i++ {
    		m[math.NaN()] = i
    	}
    	// Trigger growth.
    	m[math.NaN()] = N
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 08 05:25:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
      public HashCode hashLong(long input) {
        return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array());
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        CharBuffer buf2 = CharBuffer.allocate(expected.length());
        assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2));
        Java8Compatibility.flip(buf2);
        assertEquals(expected, buf2.toString());
        assertFullyRead(reader);
    
        // read in chunks to fixed CharBuffer
        reader = new CharSequenceReader(charSequence);
        buf2 = CharBuffer.allocate(5);
        builder = new StringBuilder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    			}
    
    			allocation, createErr := controller.Allocate(tCtx, tc.model)
    			if createErr != nil {
    				if !tc.expectAllocateErr {
    					tCtx.Fatalf("unexpected allocate error: %v", createErr)
    				}
    				return
    			}
    			if tc.expectAllocateErr {
    				tCtx.Fatalf("did not get expected allocate error")
    			}
    
    			expectAllocation := []*resourceapi.NamedResourcesAllocationResult{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
      public HashCode hashLong(long input) {
        return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array());
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  7. pkg/registry/core/service/portallocator/metrics.go

    type metricsRecorderInterface interface {
    	setAllocated(allocated int)
    	setAvailable(available int)
    	incrementAllocations(scope string)
    	incrementAllocationErrors(scope string)
    }
    
    // metricsRecorder implements metricsRecorderInterface.
    type metricsRecorder struct{}
    
    func (m *metricsRecorder) setAllocated(allocated int) {
    	nodePortAllocated.Set(float64(allocated))
    }
    
    func (m *metricsRecorder) setAvailable(available int) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 06:44:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_s390x.S

     * callee-save, so they must be saved explicitly.
     */
    .globl crosscall_s390x
    crosscall_s390x:
    	/* save r6-r15 in the register save area of the calling function */
    	stmg    %r6, %r15, 48(%r15)
    
    	/* allocate 64 bytes of stack space to save f8-f15 */
    	lay     %r15, -64(%r15)
    
    	/* save callee-saved floating point registers */
    	std     %f8, 0(%r15)
    	std     %f9, 8(%r15)
    	std     %f10, 16(%r15)
    	std     %f11, 24(%r15)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 05 16:41:48 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/types.go

    	// Allocate configures and assigns devices to a container in a pod. From
    	// the requested device resources, Allocate will communicate with the
    	// owning device plugin to allow setup procedures to take place, and for
    	// the device plugin to provide runtime settings to use the device
    	// (environment variables, mount points and device files).
    	Allocate(pod *v1.Pod, container *v1.Container) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/ipallocator.go

    	return nil
    }
    
    // Allocate attempts to reserve the provided IP. ErrNotInRange or
    // ErrAllocated will be returned if the IP is not valid for this range
    // or has already been reserved.  ErrFull will be returned if there
    // are no addresses left.
    // Only for testing, it will fail to create the IPAddress object because
    // the Service reference is required.
    func (a *Allocator) Allocate(ip net.IP) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top