Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,691 for spice (0.15 sec)

  1. src/runtime/debug/garbage.go

    }
    
    // ReadGCStats reads statistics about garbage collection into stats.
    // The number of entries in the pause history is system-dependent;
    // stats.Pause slice will be reused if large enough, reallocated otherwise.
    // ReadGCStats may use the full capacity of the stats.Pause slice.
    // If stats.PauseQuantiles is non-empty, ReadGCStats fills it with quantiles
    // summarizing the distribution of pause time. For example, if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/runtime/metrics/doc.go

    	/gc/scan/globals:bytes
    		The total amount of global variable space that is scannable.
    
    	/gc/scan/heap:bytes
    		The total amount of heap space that is scannable.
    
    	/gc/scan/stack:bytes
    		The number of bytes of stack that were scanned last GC cycle.
    
    	/gc/scan/total:bytes
    		The total amount space that is scannable. Sum of all metrics in
    		/gc/scan.
    
    	/gc/stack/starting-size:bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. src/encoding/gob/enc_helpers.go

    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return encBoolSlice(state, v.Slice(0, v.Len()))
    }
    
    func encBoolSlice(state *encoderState, v reflect.Value) bool {
    	slice, ok := v.Interface().([]bool)
    	if !ok {
    		// It is kind bool but not type bool. TODO: We can handle this unsafely.
    		return false
    	}
    	for _, x := range slice {
    		if x != false || state.sendZero {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 17:50:11 UTC 2018
    - 9.9K bytes
    - Viewed (0)
  4. src/slices/iter.go

    // returns the extended slice.
    func AppendSeq[Slice ~[]E, E any](s Slice, seq iter.Seq[E]) Slice {
    	for v := range seq {
    		s = append(s, v)
    	}
    	return s
    }
    
    // Collect collects values from seq into a new slice and returns it.
    func Collect[E any](seq iter.Seq[E]) []E {
    	return AppendSeq([]E(nil), seq)
    }
    
    // Sorted collects values from seq into a new slice, sorts the slice,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/encoding/gob/decgen.go

    		if state.b.Len() == 0 {
    			errorf("decoding %[1]s array or slice: length exceeds input size (%%d elements)", length)
    		}
    		if i >= len(slice) {
    			// This is a slice that we only partially allocated.
    			growSlice(v, &slice, length)
    		}
    		%[3]s
    	}
    	return true
    }
    `
    
    const trailer = `
    // growSlice is called for a slice that we only partially allocated,
    // to grow it up to length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. test/slice3err.go

    	_ = slice[2:2]
    	_ = slice[i:1]
    	_ = slice[1:j]
    	_ = slice[1:2:3]
    	_ = slice[1:3:2] // ERROR "invalid slice index|invalid slice indices|inverted slice"
    	_ = slice[2:1:3] // ERROR "invalid slice index|invalid slice indices|inverted slice"
    	_ = slice[2:3:1] // ERROR "invalid slice index|invalid slice indices|inverted slice"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    	}
    
    	// A SliceExpr node represents an expression followed by slice indices.
    	SliceExpr struct {
    		X      Expr      // expression
    		Lbrack token.Pos // position of "["
    		Low    Expr      // begin of slice range; or nil
    		High   Expr      // end of slice range; or nil
    		Max    Expr      // maximum capacity of slice; or nil
    		Slice3 bool      // true if 3-index slice (2 colons present)
    		Rbrack token.Pos // position of "]"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. src/internal/trace/base.go

    // fundamental data structure across.
    type baseEvent struct {
    	typ  event.Type
    	time Time
    	args timedEventArgs
    }
    
    // extra returns a slice representing extra available space in args
    // that the parser can use to pass data up into Event.
    func (e *baseEvent) extra(v version.Version) []uint64 {
    	switch v {
    	case version.Go122:
    		return e.args[len(go122.Specs()[e.typ].Args)-1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. pkg/registry/resource/resourceslice/strategy_test.go

    	ctx := genericapirequest.NewDefaultContext()
    	slice := slice.DeepCopy()
    
    	Strategy.PrepareForCreate(ctx, slice)
    	errs := Strategy.Validate(ctx, slice)
    	if len(errs) != 0 {
    		t.Errorf("unexpected error validating for create %v", errs)
    	}
    }
    
    func TestClassStrategyUpdate(t *testing.T) {
    	t.Run("no-changes-okay", func(t *testing.T) {
    		ctx := genericapirequest.NewDefaultContext()
    		slice := slice.DeepCopy()
    		newClass := slice.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/runtime/cgocall.go

    		// Now we need to set gp.cgoCtxt = s, but we could get
    		// a SIGPROF signal while manipulating the slice, and
    		// the SIGPROF handler could pick up gp.cgoCtxt while
    		// tracing up the stack.  We need to ensure that the
    		// handler always sees a valid slice, so set the
    		// values in an order such that it always does.
    		p := (*slice)(unsafe.Pointer(&gp.cgoCtxt))
    		atomicstorep(unsafe.Pointer(&p.array), unsafe.Pointer(&s[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top