- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 155 for Deallocator (0.24 sec)
-
src/runtime/traceregion.go
// license that can be found in the LICENSE file. // Simple not-in-heap bump-pointer traceRegion allocator. package runtime import ( "internal/runtime/atomic" "runtime/internal/sys" "unsafe" ) // traceRegionAlloc is a thread-safe region allocator. // It holds a linked list of traceRegionAllocBlock. type traceRegionAlloc struct { lock mutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
src/runtime/mfixalloc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Fixed-size object allocator. Returned memory is not zeroed. // // See malloc.go for overview. package runtime import ( "runtime/internal/sys" "unsafe" ) // fixalloc is a simple free-list allocator for fixed size objects. // Malloc uses a FixAlloc wrapped around sysAlloc to manage its // mcache and mspan objects. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 24 20:28:25 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_types.h
explicit TFRTypeStorage(unsigned num_attrs) : num_attrs(num_attrs) {} 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/mklockrank.go
# Above WB, we can have write barriers. < WB # Below WB is the write barrier implementation. < wbufSpans; # Span allocator stackLarge, stackpool, wbufSpans # Above mheap is anything that can call the span allocator. < mheap; # Below mheap is the span allocator implementation. # # Specials: we're allowed to allocate a special while holding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/helper.go
} type encoderWithAllocator struct { encoder EncoderWithAllocator memAllocator MemoryAllocator } // NewEncoderWithAllocator returns a new encoder func NewEncoderWithAllocator(e EncoderWithAllocator, a MemoryAllocator) Encoder { return &encoderWithAllocator{ encoder: e, memAllocator: a, } } // Encode writes the provided object to the nested writer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 13 22:54:34 UTC 2023 - 8.4K bytes - Viewed (0) -
test/fixedbugs/issue46725.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "runtime" type T [4]int // N.B., [4]int avoids runtime's tiny object allocator //go:noinline func g(x []*T) ([]*T, []*T) { return x, x } func main() { const Jenny = 8675309 s := [10]*T{{Jenny}} done := make(chan struct{}) runtime.SetFinalizer(s[0], func(p *T) { close(done) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 11 20:13:07 UTC 2022 - 818 bytes - Viewed (0) -
src/internal/coverage/calloc/batchcounteralloc.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package calloc // This package contains a simple "batch" allocator for allocating // coverage counters (slices of uint32 basically), for working with // coverage data files. Collections of counter arrays tend to all be // live/dead over the same time period, so a good fit for batch // allocation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:47:16 UTC 2022 - 754 bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.h
public: XlaTensorBuffer(const void* ptr, size_t expected_size, size_t actual_size, Allocator* allocator) : TensorBuffer(const_cast<void*>(ptr)), expected_size_(expected_size), actual_size_(actual_size), allocator_(allocator) {} ~XlaTensorBuffer() override { if (data()) { allocator_->DeallocateRaw(data()); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 11.8K bytes - Viewed (0) -
test/fixedbugs/issue54343.go
} var m = New[int]().M func New[X any]() *T[X] { p := new(T[X]) runtime.SetFinalizer(p, func(*T[X]) { close(done) }) return p } type T[X any] [4]int // N.B., [4]int avoids runtime's tiny object allocator func (*T[X]) M() {} var done = make(chan int) func wait() bool { for i := 0; i < 10; i++ { runtime.GC() select { case <-done: return true default: } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 11 20:13:07 UTC 2022 - 695 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go
// don't put the allocator inside the embeddedEncodeFn as that would allocate memory on every call. // instead, we allocate the buffer for the entire watch session and release it when we close the connection. memoryAllocator = runtime.AllocatorPool.Get().(*runtime.Allocator) embeddedEncoder = runtime.NewEncoderWithAllocator(encoderWithAllocator, memoryAllocator) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 14 16:37:25 UTC 2023 - 11.4K bytes - Viewed (0)