Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 341 for Map (0.04 sec)

  1. src/net/netip/inlining_test.go

    	t.Parallel()
    	out, err := exec.Command(
    		testenv.GoToolPath(t),
    		"build",
    		"--gcflags=-m",
    		"net/netip").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go build: %v, %s", err, out)
    	}
    	got := map[string]bool{}
    	regexp.MustCompile(` can inline (\S+)`).ReplaceAllFunc(out, func(match []byte) []byte {
    		got[strings.TrimPrefix(string(match), " can inline ")] = true
    		return nil
    	})
    	wantInlinable := []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/cmd/trace/jsontrace.go

    				log.Printf("failed to find task with id %d", taskid)
    				return
    			}
    
    			// Set the goroutine filtering options.
    			goid := firstEv.Goroutine()
    			opts.focusGoroutine = goid
    			goroutines := make(map[trace.GoID]struct{})
    			for _, task := range opts.tasks {
    				// Find only directly involved goroutines.
    				for id := range task.Goroutines {
    					goroutines[id] = struct{}{}
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    		funcScope = pass.TypesInfo.Scopes[v.Type]
    	case *ast.FuncDecl:
    		funcScope = pass.TypesInfo.Scopes[v.Type]
    	}
    
    	// Maps each cancel variable to its defining ValueSpec/AssignStmt.
    	cancelvars := make(map[*types.Var]ast.Node)
    
    	// TODO(adonovan): opt: refactor to make a single pass
    	// over the AST using inspect.WithStack and node types
    	// {FuncDecl,FuncLit,CallExpr,SelectorExpr}.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. test/recover4.go

    		n++
    	}
    	return
    }
    
    func main() {
    	// Turn the eventual fault into a panic, not a program crash,
    	// so that memcopy can recover.
    	debug.SetPanicOnFault(true)
    
    	size := syscall.Getpagesize()
    
    	// Map 16 pages of data with a 4-page hole in the middle.
    	data, err := syscall.Mmap(-1, 0, 16*size, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		log.Fatalf("mmap: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    	// in a given package that are disallowed at the specified Go version.
    	type key struct {
    		pkg     *types.Package
    		version string
    	}
    	memo := make(map[key]map[types.Object]string) // records symbol's minimum Go version
    	disallowedSymbols := func(pkg *types.Package, version string) map[types.Object]string {
    		k := key{pkg, version}
    		disallowed, ok := memo[k]
    		if !ok {
    			disallowed = typesinternal.TooNewStdSymbols(pkg, version)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/labels.go

    type block struct {
    	parent *block                         // enclosing block
    	lstmt  *syntax.LabeledStmt            // labeled statement to which this block belongs, or nil
    	labels map[string]*syntax.LabeledStmt // allocated lazily
    }
    
    // insert records a new label declaration for the current block.
    // The label must not have been declared before in any block.
    func (b *block) insert(s *syntax.LabeledStmt) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/sync/map_test.go

    	for _, c := range calls {
    		v, ok := c.apply(m)
    		results = append(results, mapResult{v, ok})
    	}
    
    	final = make(map[any]any)
    	m.Range(func(k, v any) bool {
    		final[k] = v
    		return true
    	})
    
    	return results, final
    }
    
    func applyMap(calls []mapCall) ([]mapResult, map[any]any) {
    	return applyCalls(new(sync.Map), calls)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/go/scriptconds_test.go

    	"errors"
    	"fmt"
    	"internal/buildcfg"
    	"internal/platform"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"runtime/debug"
    	"strings"
    	"sync"
    )
    
    func scriptConditions() map[string]script.Cond {
    	conds := scripttest.DefaultConds()
    
    	add := func(name string, cond script.Cond) {
    		if _, ok := conds[name]; ok {
    			panic(fmt.Sprintf("condition %q is already registered", name))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/testdata/issue47704.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func _() {
    	_ = m[] // ERROR expected operand
    	_ = m[x,]
    	_ = m[x /* ERROR unexpected name a */ a b c d]
    }
    
    // test case from the issue
    func f(m map[int]int) int {
    	return m[0 // ERROR expected comma, \: or \]
    		]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 387 bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/seh.go

    	// which are very similar across functions.
    	// These are referenced by .pdata entries using
    	// an RVA, so it is possible, and binary-size wise,
    	// to deduplicate .xdata entries.
    	uwcache := make(map[string]int64) // aux symbol name --> .xdata offset
    	for _, s := range ctxt.Textp {
    		if fi := ldr.FuncInfo(s); !fi.Valid() {
    			continue
    		}
    		uw := ldr.SEHUnwindSym(s)
    		if uw == 0 {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top