Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 522 for recursion (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/vendor/golang.org/x/tools/cmd/bisect/main.go

    	MatchFull []string // full match lines for the IDs, with match markers kept
    }
    
    // &searchFatal is a special panic value to signal that Search failed.
    // This lets us unwind the search recursion on a fatal error
    // but have Search return normally.
    var searchFatal int
    
    // Search runs a bisect search according to the configuration in b.
    // It reports whether any failing change sets were found.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/types2/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)
  10. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    	sectionAdditionals
    	sectionDone
    
    	headerBitQR = 1 << 15 // query/response (response=1)
    	headerBitAA = 1 << 10 // authoritative
    	headerBitTC = 1 << 9  // truncated
    	headerBitRD = 1 << 8  // recursion desired
    	headerBitRA = 1 << 7  // recursion available
    	headerBitAD = 1 << 5  // authentic data
    	headerBitCD = 1 << 4  // checking disabled
    )
    
    var sectionNames = map[section]string{
    	sectionHeader:      "header",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
Back to top