Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for churn (0.06 sec)

  1. src/runtime/pprof/pprof_test.go

    			ready.Add(1)
    			var count int64
    			var churn func(i int)
    			churn = func(i int) {
    				SetGoroutineLabels(WithLabels(ctx, Labels("churn-i", fmt.Sprint(i))))
    				atomic.AddInt64(&count, 1)
    				if i == 0 {
    					ready.Done()
    				}
    				if ctx.Err() == nil {
    					go churn(i + 1)
    				}
    			}
    			go func() {
    				churn(0)
    			}()
    			ready.Wait()
    
    			fn(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/buildlist.go

    	)
    	for _, root := range rs.rootModules {
    		// If the selected version of the root is the same as what was already
    		// listed in the go.mod file, retain it as a root (even if redundant) to
    		// avoid unnecessary churn. (See https://golang.org/issue/34822.)
    		//
    		// We do this even for indirect requirements, since we don't know why they
    		// were added and they could become direct at any time.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/init.go

    			// However, we didn't do so before Go 1.21, and the bug is relatively
    			// minor, so we maintain the previous (buggy) behavior in 'go mod tidy' to
    			// avoid introducing unnecessary churn.
    			if keepPkgGoModSums {
    				r := resolveReplacement(pkg.mod)
    				keep[modkey(r)] = true
    			}
    
    			if rs.pruning == pruned && pkg.mod.Path != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/load.go

    		//
    		// We don't actually rely on that invariant at the moment, but it may
    		// improve efficiency somewhat and makes the behavior a bit easier to reason
    		// about (by reducing churn on the flag bits of dependencies), and costs
    		// essentially nothing (these atomic flag ops are essentially free compared
    		// to scanning source code for imports).
    		ld.applyPkgFlags(ctx, pkg, pkgInAll)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top