Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for recursion (0.32 sec)

  1. src/go/types/unify.go

    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strings"
    )
    
    const (
    	// Upper limit for recursion depth. Used to catch infinite recursions
    	// due to implementation issues (e.g., see issues go.dev/issue/48619, go.dev/issue/48656).
    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    	// unification failure.
    	panicAtUnificationDepthLimit = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/unify.go

    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strings"
    )
    
    const (
    	// Upper limit for recursion depth. Used to catch infinite recursions
    	// due to implementation issues (e.g., see issues go.dev/issue/48619, go.dev/issue/48656).
    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    	// unification failure.
    	panicAtUnificationDepthLimit = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    // a signature, and the hash value of t must depend only on t's index and
    // constraint: signatures are considered identical modulo type parameter
    // renaming. To avoid infinite recursion, we only hash the type parameter
    // index, and rely on types.Identical to handle signatures where constraints
    // are not identical.
    //
    // Otherwise the hash of t depends only on t's pointer identity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    		return subst.tuple(t)
    
    	case *Signature:
    		// Preserve the receiver: it is handled during *Interface and *Named type
    		// substitution.
    		//
    		// Naively doing the substitution here can lead to an infinite recursion in
    		// the case where the receiver is an interface. For example, consider the
    		// following declaration:
    		//
    		//  type T[A any] struct { f interface{ m() } }
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/subst.go

    		return subst.tuple(t)
    
    	case *Signature:
    		// Preserve the receiver: it is handled during *Interface and *Named type
    		// substitution.
    		//
    		// Naively doing the substitution here can lead to an infinite recursion in
    		// the case where the receiver is an interface. For example, consider the
    		// following declaration:
    		//
    		//  type T[A any] struct { f interface{ m() } }
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typeset.go

    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    	var unionSets map[*Union]*_TypeSet
    	if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/go/types/typeset.go

    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    	var unionSets map[*Union]*_TypeSet
    	if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/iimport.go

    	}
    
    	// SetConstraint can't be called if the constraint type is not yet complete.
    	// When type params are created in the 'P' case of (*importReader).obj(),
    	// the associated constraint type may not be complete due to recursion.
    	// Therefore, we defer calling SetConstraint there, and call it here instead
    	// after all types are complete.
    	for _, d := range p.later {
    		d.t.SetConstraint(d.constraint)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

            String fullMessage = (message != null) ? message : "";
    
            // To break out of possible endless loop when getCause returns "this", or dejaVu for n-level recursion (n>1)
            Set<Throwable> dejaVu = Collections.newSetFromMap(new IdentityHashMap<>());
            for (Throwable t = exception; t != null && t != t.getCause(); t = t.getCause()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 10:31:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/go/types/predicates.go

    				//        m() interface{T}
    				//    }
    				//
    				// If two such (differently named) interfaces are compared,
    				// endless recursion occurs if the cycle is not detected.
    				//
    				// If x and y were compared before, they must be equal
    				// (if they were not, the recursion would have stopped);
    				// search the ifacePair stack for the same pair.
    				//
    				// This is a quadratic algorithm, but in practice these stacks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top