- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for ptrmap (0.1 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
// memo, but it would require detecting whether types are 'tainted' by // references to type parameters. memo: make(map[types.Type]uint32), // Re-using ptrMap ensures that pointer identity is preserved in this // hasher. ptrMap: h.ptrMap, sigTParams: tparams, } } for i := 0; i < tparams.Len(); i++ { tparam := tparams.At(i) hash += 7 * h.Hash(tparam.Constraint()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/reflect/abi.go
// next n integer registers. // // Bit i in ptrMap indicates whether the i'th value is a pointer. // n must be <= 8. // // Returns whether assignment succeeded. func (a *abiSeq) assignIntN(offset, size uintptr, n int, ptrMap uint8) bool { if n > 8 || n < 0 { panic("invalid n") } if ptrMap != 0 && size != goarch.PtrSize {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0) -
src/runtime/stkframe.go
if size > minsize { stackid := pcdata stkmap := (*stackmap)(funcdata(f, abi.FUNCDATA_LocalsPointerMaps)) if stkmap == nil || stkmap.n <= 0 { print("runtime: frame ", funcname(f), " untyped locals ", hex(frame.varp-size), "+", hex(size), "\n") throw("missing stackmap") } // If nbit == 0, there's no work to do. if stkmap.nbit > 0 { if stackid < 0 || stackid >= stkmap.n { // don't know where we are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 9.9K bytes - Viewed (0) -
test/escape2n.go
f.xx = &f.x } var ptrSlice []*int func foo50(i *int) { // ERROR "leaking param: i$" ptrSlice[0] = i } var ptrMap map[*int]*int func foo51(i *int) { // ERROR "leaking param: i$" ptrMap[i] = i } func indaddr1(x int) *int { // ERROR "moved to heap: x$" return &x } func indaddr2(x *int) *int { // ERROR "leaking param: x to result ~r0 level=0$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2.go
f.xx = &f.x } var ptrSlice []*int func foo50(i *int) { // ERROR "leaking param: i$" ptrSlice[0] = i } var ptrMap map[*int]*int func foo51(i *int) { // ERROR "leaking param: i$" ptrMap[i] = i } func indaddr1(x int) *int { // ERROR "moved to heap: x$" return &x } func indaddr2(x *int) *int { // ERROR "leaking param: x to result ~r0 level=0$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
new EqualsTester() .addEqualityGroup( function, Functions.forMap(map, 42), SerializableTester.reserialize(function)) .addEqualityGroup(Functions.forMap(map)) .addEqualityGroup(Functions.forMap(map, null)) .addEqualityGroup(Functions.forMap(map, 43)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 16K bytes - Viewed (0) -
cni/pkg/repair/repair_test.go
} func makePodLabelMap(pods []*corev1.Pod) (podmap map[string]string) { podmap = map[string]string{} for _, pod := range pods { podmap[pod.Name] = "" for key, value := range pod.Labels { podmap[pod.Name] = strings.Join([]string{podmap[pod.Name], fmt.Sprintf("%s=%s", key, value)}, ",") } podmap[pod.Name] = strings.Trim(podmap[pod.Name], " ,") } return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 10.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/plan_test.go
) func TestSortedSliceFromStringStringArrayMap(t *testing.T) { var tests = []struct { name string strMap map[string][]string expectedSlice []string }{ { name: "the returned slice should be alphabetically sorted based on the string keys in the map", strMap: map[string][]string{"foo": {"1"}, "bar": {"1", "2"}}, expectedSlice: []string{"bar", "foo"}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 03:03:29 UTC 2024 - 27.3K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller.go
controllerRef := metav1.GetControllerOf(pod) if controllerRef == nil { continue } // Only append if we care about this UID. if _, ok := podMap[controllerRef.UID]; ok { podMap[controllerRef.UID] = append(podMap[controllerRef.UID], pod) } } return podMap, nil } // syncDeployment will sync the deployment with the given key. // This function is not meant to be invoked concurrently with the same key.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.2K bytes - Viewed (0) -
src/go/types/check_test.go
delete(filemap, line) } // if filemap is empty, eliminate from errmap if len(filemap) == 0 { delete(errmap, filename) } } // there should be no expected errors left if len(errmap) > 0 { t.Errorf("--- %s: unreported errors:", pkgName) for filename, filemap := range errmap { for line, errList := range filemap { for _, err := range errList {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0)