- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 415 for recursion (0.18 sec)
-
src/cmd/compile/internal/types2/named.go
// (for example, in recursive type declarations). assert(check != nil) } if orig.tparams.Len() != targs.Len() { // Mismatching arg and tparam length may be checked elsewhere. return Typ[Invalid] } // Ensure that an instance is recorded before substituting, so that we // resolve n for any recursive references. h := n.inst.ctxt.instanceHash(orig, targs.list())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/runtime/pprof/proto.go
// // Frame's Func is nil (note: also true for non-Go functions), and // Frame's Entry matches its entry function frame's Entry (note: could also be true for recursive calls and non-Go functions), and // Frame's Name does not match its entry function frame's name (note: inlined functions cannot be directly recursive). // // As reading and processing the pcs in a stack trace one by one (from leaf to the root),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 13 20:40:52 UTC 2023 - 25.7K bytes - Viewed (0) -
src/go/types/named.go
// (for example, in recursive type declarations). assert(check != nil) } if orig.tparams.Len() != targs.Len() { // Mismatching arg and tparam length may be checked elsewhere. return Typ[Invalid] } // Ensure that an instance is recorded before substituting, so that we // resolve n for any recursive references. h := n.inst.ctxt.instanceHash(orig, targs.list())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
volumeLen, dir = cleanGlobPathWindows(dir) } else { dir = cleanGlobPath(dir) } if !hasMeta(dir[volumeLen:]) { return glob(dir, file, nil) } // Prevent infinite recursion. See issue 15879. if dir == pattern { return nil, filepath.ErrBadPattern } var m []string m, err = Glob(dir) if err != nil { return } for _, d := range m {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
src/runtime/traceback_test.go
} } func tte0(n int) string { return tte4(n - 1) } func tte1(n int) string { return tte0(n - 1) } func tte2(n int) string { // tte2 opens n%5 == 2 frames. It's also the base case of the recursion, // since we can open no fewer than two frames to call debug.Stack(). if n < 2 { panic("bad n") } if n == 2 { return string(debug.Stack()) } return tte1(n - 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 22.9K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
// TODO(josharian): make this safe for recursive interface types // and use in signatlist sorting. See issue 19869. func (t *Type) cmp(x *Type) Cmp { // This follows the structure of function identical in identity.go // with two exceptions. // 1. Symbols are compared more carefully because a <,=,> result is desired. // 2. Maps are treated specially to avoid endless recursion -- maps
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
auto it = is_pure_function_.find(func_op); if (it == is_pure_function_.end()) { bool is_pure = true; is_pure_function_[func_op] = is_pure; // prevent infinite recursion func_op->walk([&](Operation* op) { if (op == func_op) { return WalkResult::advance(); } // AssertOp is not, technically, pure. However, we treat functions
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
src/runtime/crash_test.go
} func TestGoexitInPanic(t *testing.T) { // External linking brings in cgo, causing deadlock detection not working. testenv.MustInternalLink(t, false) // see issue 8774: this code used to trigger an infinite recursion output := runTestProg(t, "testprog", "GoexitInPanic") want := "fatal error: no goroutines (main called runtime.Goexit) - deadlock!" if !strings.HasPrefix(output, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/go/types/issues_test.go
s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil) s3 := NewStruct([]*Var{NewField(nopos, nil, "_", s2, false)}, nil) T2.SetUnderlying(s3) // These calls must terminate (no endless recursion). Comparable(T1) Comparable(T2) } func TestIssue44515(t *testing.T) { typ := Unsafe.Scope().Lookup("Pointer").Type() got := TypeString(typ, nil) want := "unsafe.Pointer" if got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/encoding/gob/encoder_test.go
0x00, 0x01, 0xff, 0xd4, 0x00, 0x00, 0x07, 0xff, 0xd4, 0x00, 0x02, 0x01, 0x00, 0x00, } dec := NewDecoder(bytes.NewReader(data)) // Issue 10415: This caused infinite recursion. err := dec.Decode(nil) if err != nil { t.Fatal(err) } } // Another bug from golang-nuts, involving nested interfaces. type Bug0Outer struct { Bug0Field any }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 29.7K bytes - Viewed (0)