Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,094 for allocations (0.2 sec)

  1. pkg/kubelet/userns/userns_manager.go

    		klog.V(5).InfoS("Clean up orphaned pod user namespace possible allocation", "podUID", podUID)
    		m.releaseWithLock(podUID)
    	}
    
    	// Lets remove any existing allocation for a pod that is not "found".
    	for podUID := range m.usedBy {
    		if allFound.Has(string(podUID)) {
    			continue
    		}
    
    		klog.V(5).InfoS("Clean up orphaned pod user namespace possible allocation", "podUID", podUID)
    		m.releaseWithLock(podUID)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. src/crypto/x509/cert_pool.go

    type lazyCert struct {
    	// rawSubject is the Certificate.RawSubject value.
    	// It's the same as the CertPool.byName key, but in []byte
    	// form to make CertPool.Subjects (as used by crypto/tls) do
    	// fewer allocations.
    	rawSubject []byte
    
    	// constraint is a function to run against a chain when it is a candidate to
    	// be added to the chain. This allows adding arbitrary constraints that are
    	// not specified in the certificate itself.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. src/runtime/malloc_test.go

    		for GetNextArenaHint() == hint {
    			ac := new(acLink)
    			arenaCollisionSink = append(arenaCollisionSink, ac)
    			// The allocation must not have fallen into
    			// one of the reserved regions.
    			p := uintptr(unsafe.Pointer(ac))
    			for _, d := range disallowed {
    				if d[0] <= p && p < d[1] {
    					t.Fatalf("allocation %#x in reserved region [%#x, %#x)", p, d[0], d[1])
    				}
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    		b.timerOn = false
    	}
    }
    
    // ResetTimer zeroes the elapsed benchmark time and memory allocation counters
    // and deletes user-reported metrics.
    // It does not affect whether the timer is running.
    func (b *B) ResetTimer() {
    	if b.extra == nil {
    		// Allocate the extra map before reading memory stats.
    		// Pre-size it to make more allocation unlikely.
    		b.extra = make(map[string]float64, 16)
    	} else {
    		clear(b.extra)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	// pass a byte slice to the method to avoid allocations.
    	AsCanonicalBytes(out []byte) ([]byte, int32)
    	// AsCanonicalBase1024Bytes returns a byte array representing the string representation
    	// of the value mantissa and an int32 representing its exponent in base-1024. Callers
    	// may pass a byte slice to the method to avoid allocations.
    	AsCanonicalBase1024Bytes(out []byte) ([]byte, int32)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

      // would get after applying `remat`.
      //
      // The memory profile of a sequence of operations is the partial sum of the
      // sizes of the allocations that are necessary before an operation and the
      // negative sizes of the deallocations that are possible after the previous
      // operation.
      //
      // If we modify the operation sequence by cloning an operation range, that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  7. src/slices/slices_test.go

    		}
    	}
    
    	if !testenv.OptimizationOff() && !race.Enabled {
    		// Allocations should be amortized.
    		const count = 50
    		n := testing.AllocsPerRun(10, func() {
    			s := []int{1, 2, 3}
    			for i := 0; i < count; i++ {
    				s = Insert(s, 0, 1)
    			}
    		})
    		if n > count/2 {
    			t.Errorf("too many allocations inserting %d elements: got %v, want less than %d", count, n, count/2)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. src/io/multi_test.go

    	}
    	mw := MultiWriter(simpleWriter{&sink1}, simpleWriter{&sink2})
    	allocs := int(testing.AllocsPerRun(1000, func() {
    		WriteString(mw, "foo")
    	}))
    	if allocs != 1 {
    		t.Errorf("num allocations = %d; want 1", allocs)
    	}
    }
    
    type writeStringChecker struct{ called bool }
    
    func (c *writeStringChecker) WriteString(s string) (n int, err error) {
    	c.called = true
    	return len(s), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 10K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/transform/transform.go

    		nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], atEOF)
    		pDst += nDst
    		pSrc += nSrc
    
    		// If we got ErrShortDst or ErrShortSrc, do not grow as long as we can
    		// make progress. This may avoid excessive allocations.
    		if err == ErrShortDst {
    			if nDst == 0 {
    				dst = grow(dst, pDst)
    			}
    		} else if err == ErrShortSrc {
    			if atEOF {
    				return string(dst[:pDst]), pSrc, err
    			}
    			if nSrc == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/transform/transform.go

    		nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], atEOF)
    		pDst += nDst
    		pSrc += nSrc
    
    		// If we got ErrShortDst or ErrShortSrc, do not grow as long as we can
    		// make progress. This may avoid excessive allocations.
    		if err == ErrShortDst {
    			if nDst == 0 {
    				dst = grow(dst, pDst)
    			}
    		} else if err == ErrShortSrc {
    			if atEOF {
    				return string(dst[:pDst]), pSrc, err
    			}
    			if nSrc == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 22:10:00 UTC 2020
    - 21.7K bytes
    - Viewed (0)
Back to top