Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 238 for growing (0.11 sec)

  1. src/internal/syscall/windows/registry/value.go

    		err = regLoadMUIString(syscall.Handle(k), pname, &buf[0], uint32(len(buf)), &buflen, 0, pdir)
    	}
    
    	for err == syscall.ERROR_MORE_DATA { // Grow buffer if needed
    		if buflen <= uint32(len(buf)) {
    			break // Buffer not growing, assume race; break
    		}
    		buf = make([]uint16, buflen)
    		err = regLoadMUIString(syscall.Handle(k), pname, &buf[0], uint32(len(buf)), &buflen, 0, pdir)
    	}
    
    	if err != nil {
    		return "", err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/runtime/defer_test.go

    	// to be stack-allocated.
    	for i := 0; i < 1; i++ {
    		defer ap.method1()
    	}
    	defer ap.method2()
    	defer ap.method1()
    	ff1(ap, 1, 2, 3, 4, 5, 6, 7, 8, 9)
    	// Try to get the stack to be moved by growing it too large, so
    	// existing stack-allocated defer becomes invalid.
    	rec1(2000)
    }
    
    func g3() {
    	// Mix up the stack layout by adding in an extra function frame
    	g2()
    }
    
    var globstruct struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. src/index/suffixarray/suffixarray_test.go

    			cleanup := setBits(bits)
    			defer cleanup()
    
    			b.StopTimer()
    			x := New(data)
    			size := testSaveRestore(nil, nil, x)       // verify correctness
    			buf := bytes.NewBuffer(make([]byte, size)) // avoid growing
    			b.SetBytes(int64(size))
    			b.StartTimer()
    			b.ReportAllocs()
    			for i := 0; i < b.N; i++ {
    				buf.Reset()
    				if err := x.Write(buf); err != nil {
    					b.Fatal(err)
    				}
    				var y Index
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pilot/pkg/model/jwks_resolver.go

    	secureHTTPClient *http.Client
    	httpClient       *http.Client
    	refreshTicker    *time.Ticker
    
    	// Cached key will be removed from cache if (time.now - cachedItem.lastUsedTime >= evictionDuration), this prevents key cache growing indefinitely.
    	evictionDuration time.Duration
    
    	// Refresher job running interval.
    	refreshInterval time.Duration
    
    	// Refresher job running interval on failure.
    	refreshIntervalOnFailure time.Duration
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/cmd/link/internal/wasm/asm.go

    	dataSection := ldr.SymSect(ldr.Lookup("runtime.data", 0))
    	dataEnd := dataSection.Vaddr + dataSection.Length
    	var initialSize = dataEnd + 16<<20 // 16MB, enough for runtime init without growing
    
    	const wasmPageSize = 64 << 10 // 64KB
    
    	writeUleb128(ctxt.Out, 1)                        // number of memories
    	ctxt.Out.WriteByte(0x00)                         // no maximum memory size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. operator/pkg/tpath/tree.go

    		return nil
    	}
    	return setPathContext(nc.Parent, nc.Parent.Node, false) // note: tail recursive
    }
    
    // setValueContext writes the given value to the Node in the given PathContext.
    // If setting the value requires growing the final slice, grows it.
    func setValueContext(nc *PathContext, value any, merge bool) (bool, error) {
    	if nc.Parent == nil {
    		return false, nil
    	}
    
    	vv, mapFromString := tryToUnmarshalStringToYAML(value)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/transform/transform.go

    	if (err == nil && pSrc == len(s)) ||
    		(err != nil && err != ErrShortDst && err != ErrShortSrc) {
    		return string(dst[:pDst]), pSrc, err
    	}
    
    	// Transform the remaining input, growing dst and src buffers as necessary.
    	for {
    		n := copy(src, s[pSrc:])
    		atEOF := pSrc+n == len(s)
    		nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], atEOF)
    		pDst += nDst
    		pSrc += nSrc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge.go

    // RSS. As a result, we need to take into account for fragmentation internal to
    // spans. heapGoal / lastHeapGoal defines the ratio between the current heap goal
    // and the last heap goal, which tells us by how much the heap is growing and
    // shrinking. We estimate what the heap will grow to in terms of pages by taking
    // this ratio and multiplying it by heapInUse at the end of the last GC, which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  9. src/runtime/mgcpacer.go

    	if work > scanWorkExpected {
    		// We've already done more scan work than expected. Because our expectation
    		// is based on a steady-state scannable heap size, we assume this means our
    		// heap is growing. Compute a new heap goal that takes our existing runway
    		// computed for scanWorkExpected and extrapolates it to maxScanWork, the worst-case
    		// scan work. This keeps our assist ratio stable if the heap continues to grow.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  10. src/strings/strings.go

    	// larger chunks as the source of the write, as when the source
    	// is too large we are basically just thrashing the CPU D-cache.
    	// So if the result length is larger than an empirically-found
    	// limit (8KB), we stop growing the source string once the limit
    	// is reached and keep reusing the same source string - that
    	// should therefore be always resident in the L1 cache - until we
    	// have completed the construction of the result.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top