Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 704 for Deallocate (0.37 sec)

  1. src/cmd/internal/obj/textflag.go

    	NEEDCTXT = 64
    
    	// When passed to objw.Global, causes Local to be set to true on the LSym it creates.
    	LOCAL = 128
    
    	// Allocate a word of thread local storage and store the offset from the
    	// thread local base to the thread local storage in this variable.
    	TLSBSS = 256
    
    	// Do not insert instructions to allocate a stack frame for this function.
    	// Only valid on functions that declare a frame size of 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:25:30 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_none_test.go

    		defaultCPUSet: cpuset.New(1, 2, 3, 4, 5, 6, 7),
    	}
    
    	testPod := makePod("fakePod", "fakeContainer", "1000m", "1000m")
    
    	container := &testPod.Spec.Containers[0]
    	err := policy.Allocate(st, testPod, container)
    	if err != nil {
    		t.Errorf("NonePolicy Allocate() error. expected no error but got: %v", err)
    	}
    }
    
    func TestNonePolicyRemove(t *testing.T) {
    	policy := &nonePolicy{}
    
    	st := &mockState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/link/internal/ld/outbuf_freebsd.go

    // license that can be found in the LICENSE file.
    
    //go:build freebsd && go1.21
    
    package ld
    
    import (
    	"internal/syscall/unix"
    	"syscall"
    )
    
    func (out *OutBuf) fallocate(size uint64) error {
    	err := unix.PosixFallocate(int(out.f.Fd()), 0, int64(size))
    	// ZFS on FreeBSD does not support posix_fallocate and returns EINVAL in that case.
    	if err == syscall.EINVAL {
    		return errNoFallocate
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 14:17:36 UTC 2023
    - 515 bytes
    - Viewed (0)
  6. 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)
  7. pkg/kubelet/cm/cpumanager/fake_cpu_manager.go

    	klog.InfoS("Start()")
    	return nil
    }
    
    func (m *fakeManager) Policy() Policy {
    	klog.InfoS("Policy()")
    	pol, _ := NewNonePolicy(nil)
    	return pol
    }
    
    func (m *fakeManager) Allocate(pod *v1.Pod, container *v1.Container) error {
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    	return nil
    }
    
    func (m *fakeManager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. pkg/registry/core/service/portallocator/metrics.go

    	)
    	// nodePortAllocationErrors counts the number of error trying to allocate a nodePort and allocation mode: static or dynamic.
    	nodePortAllocationErrors = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "allocation_errors_total",
    			Help:           "Number of errors trying to allocate NodePort",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"scope"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 06:44:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/memorymanager/fake_memory_manager.go

    	klog.InfoS("Start()")
    	return nil
    }
    
    func (m *fakeManager) Policy() Policy {
    	klog.InfoS("Policy()")
    	return NewPolicyNone()
    }
    
    func (m *fakeManager) Allocate(pod *v1.Pod, container *v1.Container) error {
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    	return nil
    }
    
    func (m *fakeManager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. test/fixedbugs/issue14591.go

    // Test to make sure we don't think values are dead
    // when they are assigned to a PPARAMOUT slot before
    // the last GC safepoint.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    // When a T is deallocated, T[1] is certain to
    // get clobbered (the runtime writes 0xdeaddeaddeaddead there).
    type T [4]int
    
    func f() (r, s *T) {
    	r = &T{0x30, 0x31, 0x32, 0x33}
    	runtime.GC()
    	s = &T{0x40, 0x41, 0x42, 0x43}
    	runtime.GC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 769 bytes
    - Viewed (0)
Back to top