Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,094 for allocations (0.18 sec)

  1. src/runtime/HACKING.md

    ================
    
    In general, the runtime tries to use regular heap allocation. However,
    in some cases the runtime must allocate objects outside of the garbage
    collected heap, in *unmanaged memory*. This is necessary if the
    objects are part of the memory manager itself or if they must be
    allocated in situations where the caller may not have a P.
    
    There are three mechanisms for allocating unmanaged memory:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    // TODO: fields are not labels, and the validation rules for them do not apply.
    func PodToSelectableFields(pod *example.Pod) fields.Set {
    	// The purpose of allocation with a given number of elements is to reduce
    	// amount of allocations needed to create the fields.Set. If you add any
    	// field here or the number of object-meta related fields changes, this should
    	// be adjusted.
    	podSpecificFieldsSet := make(fields.Set, 5)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. pkg/registry/core/service/portallocator/allocator_test.go

    	for i := 0; i < 3000; i++ {
    		a.AllocateNext()
    	}
    	em = testMetrics{
    		free:      0,
    		used:      2768,
    		allocated: 2768 + 2, // this is a counter, we already had 2 allocations and we did 2768 more
    		errors:    232 + 2,  // this is a counter, we already had 2 errors and we did 232 more
    	}
    	expectMetrics(t, em)
    }
    
    func TestNodePortAllocatedMetrics(t *testing.T) {
    	clearMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/field/fe.go

    	v.l4 &= maskLow51Bits
    
    	return v, nil
    }
    
    // Bytes returns the canonical 32-byte little-endian encoding of v.
    func (v *Element) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [32]byte
    	return v.bytes(&out)
    }
    
    func (v *Element) bytes(out *[32]byte) []byte {
    	t := *v
    	t.reduce()
    
    	var buf [8]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. src/hash/crc32/crc32_test.go

    	data = data[alignment:]
    	for i := range data {
    		data[i] = byte(i)
    	}
    	in := make([]byte, 0, h.Size())
    
    	// Warm up
    	h.Reset()
    	h.Write(data)
    	h.Sum(in)
    	// Avoid further allocations
    	in = in[:0]
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		h.Reset()
    		h.Write(data)
    		h.Sum(in)
    		in = in[:0]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/math/big/int.go

    	z.abs = z.abs.setUint64(x)
    	z.neg = false
    	return z
    }
    
    // NewInt allocates and returns a new [Int] set to x.
    func NewInt(x int64) *Int {
    	// This code is arranged to be inlineable and produce
    	// zero allocations when inlined. See issue 29951.
    	u := uint64(x)
    	if x < 0 {
    		u = -u
    	}
    	var abs []Word
    	if x == 0 {
    	} else if _W == 32 && u>>32 != 0 {
    		abs = []Word{Word(u), Word(u >> 32)}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. pkg/api/v1/resource/helpers.go

    	}
    	for key, value := range b {
    		if _, found := result[key]; !found {
    			result[key] = value.DeepCopy()
    		}
    	}
    	return result
    }
    
    // reuseOrClearResourceList is a helper for avoiding excessive allocations of
    // resource lists within the inner loop of resource calculations.
    func reuseOrClearResourceList(reuse v1.ResourceList) v1.ResourceList {
    	if reuse == nil {
    		return make(v1.ResourceList, 4)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          eventListener.callFailed(this, result!!)
        } else {
          eventListener.callEnd(this)
        }
        return result
      }
    
      /**
       * Remove this call from the connection's list of allocations. Returns a socket that the caller
       * should close.
       */
      internal fun releaseConnectionNoEvents(): Socket? {
        val connection = this.connection!!
        connection.lock.assertHeld()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. src/runtime/mpallocbits.go

    	for k := i/64 + 1; k < j/64; k++ {
    		s += uint(sys.OnesCount64(b[k]))
    	}
    	s += uint(sys.OnesCount64(b[j/64] & ((1 << (j%64 + 1)) - 1)))
    	return
    }
    
    // pallocBits is a bitmap that tracks page allocations for at most one
    // palloc chunk.
    //
    // The precise representation is an implementation detail, but for the
    // sake of documentation, 0s are free pages and 1s are allocated pages.
    type pallocBits pageBits
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/main.go

    			runtime.MemProfileRate = int(*memprofilerate)
    		}
    		f, err := os.Create(*memprofile)
    		if err != nil {
    			log.Fatalf("%v", err)
    		}
    		AtExit(func() {
    			// Profile all outstanding allocations.
    			runtime.GC()
    			// compilebench parses the memory profile to extract memstats,
    			// which are only written in the legacy pprof format.
    			// See golang.org/issue/18641 and runtime/pprof/pprof.go:writeHeap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top