- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 423 for Allocate (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
test/fixedbugs/issue67255.go
for i := 10; i < 200; i++ { // The objects we're allocating here are pointer-ful. Some will // max out their size class, which are the ones we want. // We also allocate from small to large, so that the object which // maxes out its size class is the last one allocated in that class. // This allocation pattern leaves the next object in the class // unallocated, which we need to reproduce the bug. objs = append(objs, make([]*byte, i))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 922 bytes - Viewed (0) -
src/runtime/os_wasm.go
//go:nosplit func osyield_no_g() { osyield() } type sigset struct{} // Called to initialize a new m (including the bootstrap m). // Called on the parent thread (main thread in case of bootstrap), can allocate memory. func mpreinit(mp *m) { mp.gsignal = malg(32 * 1024) mp.gsignal.m = mp } //go:nosplit func usleep_no_g(usec uint32) { usleep(usec) } //go:nosplit func sigsave(p *sigset) { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_types.h
static TFRTypeStorage* construct(TypeStorageAllocator& allocator, KeyTy key) { // Allocate a new storage instance. auto byteSize = TFRTypeStorage::totalSizeToAlloc<StringAttr>(key.size()); auto rawMem = allocator.allocate(byteSize, alignof(TFRTypeStorage)); auto result = ::new (rawMem) TFRTypeStorage(key.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 07:17:01 UTC 2023 - 4.1K bytes - Viewed (0) -
src/runtime/testdata/testwintls/main.c
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <windows.h> int main(int argc, char **argv) { if (argc < 3) { return 1; } // Allocate more than 64 TLS indices // so the Go runtime doesn't find // enough space in the TEB TLS slots. for (int i = 0; i < 65; i++) { TlsAlloc(); } HMODULE hlib = LoadLibrary(argv[1]);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 25 15:37:00 UTC 2023 - 692 bytes - Viewed (0)