Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 507 for Map (0.16 sec)

  1. src/runtime/memmove_linux_amd64_test.go

    		_, _, errno := syscall.Syscall6(syscall.SYS_MMAP,
    			base+off, 65536, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_SHARED|syscall.MAP_FIXED, tmp.Fd(), 0)
    		if errno != 0 {
    			t.Skipf("could not map a page at requested 0x%x: %s", base+off, errno)
    		}
    		defer syscall.Syscall(syscall.SYS_MUNMAP, base+off, 65536, 0)
    	}
    
    	s := unsafe.Slice((*byte)(unsafe.Pointer(base)), 3<<30)
    	n := copy(s[1:], s)
    	if n != 3<<30-1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:48:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/internal/trace/event/event.go

    	"stack",   // stack ID
    	"value",   // uint64
    	"task",    // trace.TaskID
    }
    
    // Names is a helper that produces a mapping of event names to event types.
    func Names(specs []Spec) map[string]Type {
    	nameToType := make(map[string]Type)
    	for i, spec := range specs {
    		nameToType[spec.Name] = Type(byte(i))
    	}
    	return nameToType
    }
    
    // Experiment is an experiment ID that events may be associated with.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go

    // license that can be found in the LICENSE file.
    
    // Issue 62430: a program that uses plugins may appear
    // to have no references to an initialized global map variable defined
    // in some stdlib package (ex: unicode), however there
    // may be references to that map var from a plugin that
    // gets loaded.
    
    package main
    
    import (
    	"fmt"
    	"plugin"
    	"unicode"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 13:18:51 UTC 2023
    - 804 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go

    // MethodSet(T) is called so that repeat queries are fast.
    // The zero value is a ready-to-use cache instance.
    type MethodSetCache struct {
    	mu     sync.Mutex
    	named  map[*types.Named]struct{ value, pointer *types.MethodSet } // method sets for named N and *N
    	others map[types.Type]*types.MethodSet                            // all other types
    }
    
    // MethodSet returns the method set of type T.  It is thread-safe.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 18:08:27 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/testing.go

    	for s.tok != _EOF {
    		s.next()
    	}
    }
    
    // CommentMap collects all comments in the given src with comment text
    // that matches the supplied regular expression rx and returns them as
    // []Error lists in a map indexed by line number. The comment text is
    // the comment with any comment markers ("//", "/*", or "*/") stripped.
    // The position for each Error is the position of the token immediately
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:53:18 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/mktests.go

    		log.Fatal(err)
    	}
    	if err := ctx.runTestProg("./testprog/annotations-stress.go"); err != nil {
    		log.Fatal(err)
    	}
    }
    
    type context struct {
    	testNames map[string]struct{}
    	filter    *regexp.Regexp
    }
    
    func newContext() (*context, error) {
    	var filter *regexp.Regexp
    	var err error
    	if pattern := os.Getenv("GOTRACETEST"); pattern != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/mono.go

    //
    // For example, given:
    //
    //	func f[A, B any]() {
    //		type T int
    //		f[T, map[A]B]()
    //	}
    //
    // we construct vertices representing types A, B, and T. Because of
    // declaration "type T int", we construct edges T<-A and T<-B with
    // weight 1; and because of instantiation "f[T, map[A]B]" we construct
    // edges A<-T with weight 0, and B<-A and B<-B with weight 1.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/go/types/typestring_test.go

    	dup("interface{comparable}"),
    	// TODO(gri) adjust test for EvalCompositeTest
    	// {"comparable", "interface{comparable}"},
    	// {"error", "interface{Error() string}"},
    
    	// maps
    	dup("map[string]int"),
    	{"map[struct{x, y int}][]byte", "map[struct{x int; y int}][]byte"},
    
    	// channels
    	dup("chan<- chan int"),
    	dup("chan<- <-chan int"),
    	dup("<-chan <-chan int"),
    	dup("chan (<-chan int)"),
    	dup("chan<- func()"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/internal/singleflight/singleflight.go

    	chans []chan<- Result
    }
    
    // Group represents a class of work and forms a namespace in
    // which units of work can be executed with duplicate suppression.
    type Group struct {
    	mu sync.Mutex       // protects m
    	m  map[string]*call // lazily initialized
    }
    
    // Result holds the results of Do, so they can be passed
    // on a channel.
    type Result struct {
    	Val    any
    	Err    error
    	Shared bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 20:49:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. src/net/http/routing_index.go

    type routingIndex struct {
    	// map from a particular segment position and value to all registered patterns
    	// with that value in that position.
    	// For example, the key {1, "b"} would hold the patterns "/a/b" and "/a/b/c"
    	// but not "/a", "b/a", "/a/c" or "/a/{x}".
    	segments map[routingIndexKey][]*pattern
    	// All patterns that end in a multi wildcard (including trailing slash).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 18:35:22 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top