Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for avoiding (0.14 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    					residual = true
    					continue
    				}
    				// Add cum weight to all nodes in stack, avoiding double counting.
    				if _, ok := seenNode[n]; !ok {
    					seenNode[n] = true
    					n.addSample(dw, w, labels, sample.NumLabel, sample.NumUnit, o.FormatTag, false)
    				}
    				// Update edge weights for all edges in stack, avoiding double counting.
    				if _, ok := seenEdge[nodePair{n, parent}]; !ok && parent != nil && n != parent {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  2. src/embed/embed.go

    		n = count
    	}
    	list := make([]fs.DirEntry, n)
    	for i := range list {
    		list[i] = &d.files[d.offset+i]
    	}
    	d.offset += n
    	return list, nil
    }
    
    // sortSearch is like sort.Search, avoiding an import.
    func sortSearch(n int, f func(int) bool) int {
    	// Define f(-1) == false and f(n) == true.
    	// Invariant: f(i-1) == false, f(j) == true.
    	i, j := 0, n
    	for i < j {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/runtime/mbarrier.go

    // result on most HW (including 386/amd64) can be r1==r2==0. This is a classic
    // example of what can happen when loads are allowed to be reordered with older
    // stores (avoiding such reorderings lies at the heart of the classic
    // Peterson/Dekker algorithms for mutual exclusion). Rather than require memory
    // barriers, which will slow down both the mutator and the GC, we always grey
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand.go

    	// In terms of 32-bit halves, this is:
    	// 	x1:x0 := r.Uint64()
    	// 	0:hi, lo1:lo0 := bits.Mul64(x1:x0, 0:n)
    	// Writing out the multiplication in terms of bits.Mul32 allows
    	// using direct hardware instructions and avoiding
    	// the computations involving these zeros.
    	x := r.Uint64()
    	lo1a, lo0 := bits.Mul32(uint32(x), n)
    	hi, lo1b := bits.Mul32(uint32(x>>32), n)
    	lo1, c := bits.Add32(lo1a, lo1b, 0)
    	hi += c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/ureader.go

    	r := pr.newReader(pkgbits.RelocMeta, pkgbits.PublicRootIdx, pkgbits.SyncPublic)
    	pkg := r.pkg()
    	r.Bool() // TODO(mdempsky): Remove; was "has init"
    
    	for i, n := 0, r.Len(); i < n; i++ {
    		// As if r.obj(), but avoiding the Scope.Lookup call,
    		// to avoid eager loading of imports.
    		r.Sync(pkgbits.SyncObject)
    		assert(!r.Bool())
    		r.p.objIdx(r.Reloc(pkgbits.RelocObj))
    		assert(r.Len() == 0)
    	}
    
    	r.Sync(pkgbits.SyncEOF)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/runtime/gc_test.go

    	}
    }
    
    func TestGcZombieReporting(t *testing.T) {
    	// This test is somewhat sensitive to how the allocator works.
    	// Pointers in zombies slice may cross-span, thus we
    	// add invalidptr=0 for avoiding the badPointer check.
    	// See issue https://golang.org/issues/49613/
    	got := runTestProg(t, "testprog", "GCZombie", "GODEBUG=invalidptr=0")
    	want := "found pointer to free object"
    	if !strings.Contains(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/named.go

    	// Only pass the expanding context to the new instance if their packages
    	// match. Since type reference cycles are only possible within a single
    	// package, this is sufficient for the purposes of short-circuiting cycles.
    	// Avoiding passing the context in other cases prevents unnecessary coupling
    	// of types across packages.
    	if expanding != nil && expanding.Obj().pkg == obj.pkg {
    		inst.ctxt = expanding.inst.ctxt
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache.adoc

    The build cache works by storing (locally or remotely) build outputs and allowing builds to fetch these outputs from the cache when it is determined that inputs have not changed, avoiding the expensive work of regenerating them.
    
    A first feature using the build cache is _task output caching_.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 11:30:10 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. src/go/types/named.go

    	// Only pass the expanding context to the new instance if their packages
    	// match. Since type reference cycles are only possible within a single
    	// package, this is sufficient for the purposes of short-circuiting cycles.
    	// Avoiding passing the context in other cases prevents unnecessary coupling
    	// of types across packages.
    	if expanding != nil && expanding.Obj().pkg == obj.pkg {
    		inst.ctxt = expanding.inst.ctxt
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multisets.java

          Multiset<E> multisetToModify, Multiset<?> occurrencesToRetain) {
        checkNotNull(multisetToModify);
        checkNotNull(occurrencesToRetain);
        // Avoiding ConcurrentModificationExceptions is tricky.
        Iterator<Entry<E>> entryIterator = multisetToModify.entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top