Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 530 for Allocate (0.16 sec)

  1. src/runtime/textflag.h

    #define WRAPPER 32
    // This function uses its incoming context register.
    #define NEEDCTXT 64
    // Allocate a word of thread local storage and store the offset from the
    // thread local base to the thread local storage in this variable.
    #define 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.
    #define NOFRAME 512
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 17:28:41 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue13160.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    const N = 100000
    
    func main() {
    	// Allocate more Ps than processors.  This raises
    	// the chance that we get interrupted by the OS
    	// in exactly the right (wrong!) place.
    	p := runtime.NumCPU()
    	runtime.GOMAXPROCS(2 * p)
    
    	// Allocate some pointers.
    	ptrs := make([]*int, p)
    	for i := 0; i < p; i++ {
    		ptrs[i] = new(int)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/memorymanager/policy.go

    // Type defines the policy type
    type policyType string
    
    // Policy implements logic for pod container to a memory assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    	RemoveContainer(s state.State, podUID string, containerName string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 17:52:25 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    			alloc := &testAllocator{}
    			if err := target.EncodeWithAllocator(tc.obj, writer2, alloc); err != nil {
    				t.Fatal(err)
    			}
    			if alloc.allocateCount != 1 {
    				t.Fatalf("expected the Allocate method to be called exactly 1 but it was executed: %v times ", alloc.allocateCount)
    			}
    
    			// to ensure compatibility of the new method with the old one, serialized data must be equal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
  5. src/runtime/cgo/asm_s390x.s

    TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0
    	// Start with standard C stack frame layout and linkage.
    
    	// Save R6-R15 in the register save area of the calling function.
    	STMG	R6, R15, 48(R15)
    
    	// Allocate 96 bytes on the stack.
    	MOVD	$-96(R15), R15
    
    	// Save F8-F15 in our stack frame.
    	FMOVD	F8, 32(R15)
    	FMOVD	F9, 40(R15)
    	FMOVD	F10, 48(R15)
    	FMOVD	F11, 56(R15)
    	FMOVD	F12, 64(R15)
    	FMOVD	F13, 72(R15)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/policy_none.go

    func NewPolicyNone() Policy {
    	return &none{}
    }
    
    func (p *none) Name() string {
    	return string(policyTypeNone)
    }
    
    func (p *none) Start(s state.State) error {
    	return nil
    }
    
    // Allocate call is idempotent
    func (p *none) Allocate(s state.State, pod *v1.Pod, container *v1.Container) error {
    	return nil
    }
    
    // RemoveContainer call is idempotent
    func (p *none) RemoveContainer(s state.State, podUID string, containerName string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 17:52:25 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc

                  TF_Status* status) {}
    
    void PopulateDefaultStreamExecutor(SP_StreamExecutor* se) {
      *se = {SP_STREAMEXECUTOR_STRUCT_SIZE};
      se->allocate = Allocate;
      se->deallocate = Deallocate;
      se->host_memory_allocate = HostMemoryAllocate;
      se->host_memory_deallocate = HostMemoryDeallocate;
      se->get_allocator_stats = GetAllocatorStats;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 21 20:09:00 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top