- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 108 for pmap (0.04 sec)
-
test/abi/map.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "runtime" type T [10]int var m map[*T]int //go:noinline func F() { m = map[*T]int{ K(): V(), // the key temp should be live across call to V } } //go:noinline func V() int { runtime.GC(); runtime.GC(); runtime.GC(); return 123 } //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 20 14:30:03 UTC 2021 - 557 bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/mime.map
Shinsuke Sugaya <******@****.***> 1553287182 +0900
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 5.9K bytes - Viewed (0) -
src/go/types/map.go
// Source: ../../cmd/compile/internal/types2/map.go // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types // A Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 781 bytes - Viewed (0) -
pkg/test/framework/config/map.go
package config import ( "fmt" "istio.io/istio/pkg/test/scopes" ) type Map map[string]any func (m Map) Map(key string) Map { nested, ok := m[key] if !ok { return nil } out, ok := nested.(Map) if !ok { return nil } return out } func (m Map) String(key string) string { v, ok := m[key] if !ok || v == nil { return "" } str, ok := v.(string)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.2K bytes - Viewed (0) -
src/runtime/testdata/testprog/map.go
} func concurrentMapWrites() { m := map[int]int{} c := make(chan struct{}) go func() { for i := 0; i < 10000; i++ { m[5] = 0 runtime.Gosched() } c <- struct{}{} }() go func() { for i := 0; i < 10000; i++ { m[6] = 0 runtime.Gosched() } c <- struct{}{} }() <-c <-c } func concurrentMapReadWrite() { m := map[int]int{} c := make(chan struct{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 16 21:52:44 UTC 2016 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/map.go
val V left, right *node[K, V] } // New returns a new map. func New[K, V any](compare func(K, K) int) *Map[K, V] { return &Map[K, V]{compare: compare} } // find looks up key in the map, and returns either a pointer // to the node holding key, or a pointer to the location where // such a node would go. func (m *Map[K, V]) find(key K) **node[K, V] { pn := &m.root for *pn != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 30 18:02:18 UTC 2022 - 2.8K bytes - Viewed (0) -
src/go/parser/testdata/map.go2
package orderedmap import "chans" // Map is an ordered map. type Map[K, V any] struct { root *node[K, V] compare func(K, K) int } // node is the type of a node in the binary tree. type node[K, V any] struct { key K val V left, right *node[K, V] } // New returns a new map. func New[K, V any](compare func(K, K) int) *Map[K, V] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 19:44:06 UTC 2020 - 2.6K bytes - Viewed (0) -
src/internal/abi/map.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package abi // Map constants common to several packages // runtime/runtime-gdb.py:MapTypePrinter contains its own copy const ( // Maximum number of key/elem pairs a bucket can hold. MapBucketCountBits = 3 // log2 of number of elements in a bucket. MapBucketCount = 1 << MapBucketCountBits
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 20:09:01 UTC 2024 - 719 bytes - Viewed (0) -
test/typeparam/map.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "reflect" "strconv" ) // Map calls the function f on every element of the slice s, // returning a new slice of the results. func mapper[F, T any](s []F, f func(F) T) []T { r := make([]T, len(s)) for i, v := range s { r[i] = f(v) } return r
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 885 bytes - Viewed (0) -
pkg/typemap/map.go
import ( "reflect" "istio.io/istio/pkg/ptr" ) // TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type. // The value stored for a type must be of the same type as the key. type TypeMap struct { inner map[reflect.Type]any } func NewTypeMap() TypeMap { return TypeMap{make(map[reflect.Type]any)} } func Set[T any](t TypeMap, v T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.2K bytes - Viewed (0)