- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 705 for Allocate (0.12 sec)
-
src/runtime/arena.go
// allocated into arenas. // // Note that arenas are not safe to use concurrently. // // In summary, there are 2 resources: arenas, and arena chunks. They exist in the // following lifecycle: // // (1) A new arena is created via newArena. // (2) Chunks are allocated to hold memory allocated into the arena with new or slice. // (a) Chunks are first allocated from the reuse list of partially-used chunks.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/runtime/mcache.go
// Alternatively, instead of making sure we do this on every P // between starting the world and allocating on that P, we // could leave allocate-black on, allow allocation to continue // as usual, use a ragged barrier at the beginning of sweep to // ensure all cached spans are swept, and then disable // allocate-black. However, with this approach it's difficult // to avoid spilling mark bits into the *next* GC cycle. sg := mheap_.sweepgen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 10K bytes - Viewed (0) -
src/runtime/msize.go
// Malloc small size classes. // // See malloc.go for overview. // See also mksizeclasses.go for how we decide what size classes to use. package runtime // Returns size of the memory block that mallocgc will allocate if you ask for the size, // minus any inline space for metadata. func roundupsize(size uintptr, noscan bool) (reqSize uintptr) { reqSize = size if reqSize <= maxSmallSize-mallocHeaderSize { // Small object.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return CharBuffer.allocate(generateInt()); } @Generates ByteBuffer generateByteBuffer() { return ByteBuffer.allocate(generateInt()); } @Generates ShortBuffer generateShortBuffer() { return ShortBuffer.allocate(generateInt()); } @Generates IntBuffer generateIntBuffer() { return IntBuffer.allocate(generateInt()); } @Generates
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 28.6K bytes - Viewed (0) -
src/runtime/arena_test.go
t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase) } arena.Free() }) t.Run("[]struct{}", func(t *testing.T) { arena := NewUserArena() var sl []struct{} arena.Slice(&sl, 10) if v := unsafe.Pointer(&sl[0]); v != ZeroBase { t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase) } arena.Free()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return CharBuffer.allocate(generateInt()); } @Generates ByteBuffer generateByteBuffer() { return ByteBuffer.allocate(generateInt()); } @Generates ShortBuffer generateShortBuffer() { return ShortBuffer.allocate(generateInt()); } @Generates IntBuffer generateIntBuffer() { return IntBuffer.allocate(generateInt()); } @Generates
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 28K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go
return false, fmt.Errorf("checking node %q and resources of driver %q: %w", nodeName, driverName, err) } if !okay { return false, nil } } return true, nil } func (c claimController) allocate(ctx context.Context, nodeName string, resources resources) (string, *resourcev1alpha2.AllocationResult, error) { allocation := &resourcev1alpha2.AllocationResult{ Shareable: c.claimParameters.Shareable,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 22 09:03:22 UTC 2024 - 8.7K bytes - Viewed (0) -
src/runtime/os3_solaris.go
// 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 } func miniterrno() // Called to initialize a new m (including the bootstrap m). // Called on the new thread, cannot allocate memory. func minit() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/util/tail/tail.go
blockSize = 1024 ) // ReadAtMost reads at most max bytes from the end of the file identified by path or // returns an error. It returns true if the file was longer than max. It will // allocate up to max bytes. func ReadAtMost(path string, max int64) ([]byte, bool, error) { f, err := os.Open(path) if err != nil { return nil, false, err } defer f.Close() fi, err := f.Stat() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/range_allocator.go
// NodeController restart will return all falsely allocated CIDRs to the pool. if !apierrors.IsServerTimeout(err) { logger.Error(err, "CIDR assignment for node failed. Releasing allocated CIDR", "node", klog.KObj(node)) for idx, cidr := range allocatedCIDRs { if releaseErr := r.cidrSets[idx].Release(cidr); releaseErr != nil { logger.Error(releaseErr, "Error releasing allocated CIDR for node", "node", klog.KObj(node)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 16.2K bytes - Viewed (0)