Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 449 for Allocate (0.31 sec)

  1. android/guava/src/com/google/common/collect/ImmutableMultiset.java

        Builder(int estimatedDistinct) {
          this.contents = ObjectCountHashMap.createWithExpectedSize(estimatedDistinct);
        }
    
        Builder(boolean forSubtype) {
          // for ImmutableSortedMultiset not to allocate data structures not used there
          this.contents = null;
        }
    
        /**
         * Adds {@code element} to the {@code ImmutableMultiset}.
         *
         * @param element the element to add
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/runtime/map.go

    	// For hint < 0 overLoadFactor returns false since hint < bucketCnt.
    	B := uint8(0)
    	for overLoadFactor(hint, B) {
    		B++
    	}
    	h.B = B
    
    	// allocate initial hash table
    	// if B == 0, the buckets field is allocated lazily later (in mapassign)
    	// If hint is large zeroing this memory could take a while.
    	if h.B != 0 {
    		var nextOverflow *bmap
    		h.buckets, nextOverflow = makeBucketArray(t, h.B, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. src/slices/slices.go

    		if len(s2) < len(s) {
    			clear(s[len(s2):]) // zero/nil out the obsolete elements, for GC
    		}
    		return s2
    	}
    
    	tot := len(s[:i]) + len(v) + len(s[j:])
    	if tot > cap(s) {
    		// Too big to fit, allocate and copy over.
    		s2 := append(s[:i], make(S, tot-i)...) // See Insert
    		copy(s2[i:], v)
    		copy(s2[i+len(v):], s[j:])
    		return s2
    	}
    
    	r := s[:tot]
    
    	if i+len(v) <= j {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    // goroutine needs another span, it first attempts to reclaim that much memory
    // by sweeping. When a goroutine needs to allocate a new small-object span, it
    // sweeps small-object spans for the same object size until it frees at least
    // one object. When a goroutine needs to allocate large-object span from heap,
    // it sweeps spans until it frees at least that many pages into heap. There is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  5. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

                    throw new AssertionError(e);
                }
            }
        }
    
        private static class MessageDigestHasher implements PrimitiveHasher {
            private final ByteBuffer buffer = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
            private MessageDigest digest;
    
            public MessageDigestHasher(MessageDigest digest) {
                this.digest = digest;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    	// Initialize the metrics beforehand because this could
    	// allocate and skew the stats.
    	metricsLock()
    	initMetrics()
    
    	systemstack(func() {
    		// Donate the racectx to g0. readMetricsLocked calls into the race detector
    		// via map access.
    		getg().racectx = getg().m.curg.racectx
    
    		// Read the metrics once before in case it allocates and skews the metrics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. pkg/kubelet/userns/userns_manager_test.go

    	require.NoError(t, err)
    
    	allocated, length, err := m.allocateOne("one")
    	assert.NoError(t, err)
    	assert.Equal(t, userNsLength, int(length), "m.isSet(%d).length=%v", allocated, length)
    	assert.Equal(t, true, m.isSet(allocated), "m.isSet(%d)", allocated)
    
    	allocated2, length2, err := m.allocateOne("two")
    	assert.NoError(t, err)
    	assert.NotEqual(t, allocated, allocated2, "allocated != allocated2")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/compile.go

    	{name: "schedule", fn: schedule, required: true}, // schedule values
    	{name: "late nilcheck", fn: nilcheckelim2},
    	{name: "flagalloc", fn: flagalloc, required: true}, // allocate flags register
    	{name: "regalloc", fn: regalloc, required: true},   // allocate int & float registers + stack slots
    	{name: "loop rotate", fn: loopRotate},
    	{name: "trim", fn: trim}, // remove empty blocks
    }
    
    // Double-check phase ordering constraints.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/controller/repairip.go

    		if apierrors.IsNotFound(err) {
    			// ClusterIP doesn't seem to be allocated, create it.
    			r.recorder.Eventf(svc, nil, v1.EventTypeWarning, "ClusterIPNotAllocated", "ClusterIPAllocation", "Cluster IP [%v]: %s is not allocated; repairing", family, ip)
    			runtime.HandleError(fmt.Errorf("the ClusterIP [%v]: %s for Service %s/%s is not allocated; repairing", family, ip, svc.Namespace, svc.Name))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. src/runtime/cpuprof.go

    		cpuprof.addExtra()
    		cpuprof.log.close()
    	}
    	unlock(&cpuprof.lock)
    }
    
    // add adds the stack trace to the profile.
    // It is called from signal handlers and other limited environments
    // and cannot allocate memory or acquire locks that might be
    // held at the time of the signal, nor can it use substantial amounts
    // of stack.
    //
    //go:nowritebarrierrec
    func (p *cpuProfile) add(tagPtr *unsafe.Pointer, stk []uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top