Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 432 for panicIP (0.36 sec)

  1. src/math/big/float.go

    	return z
    }
    
    func validateBinaryOperands(x, y *Float) {
    	if !debugFloat {
    		// avoid performance bugs
    		panic("validateBinaryOperands called but debugFloat is not set")
    	}
    	if len(x.mant) == 0 {
    		panic("empty mantissa for x")
    	}
    	if len(y.mant) == 0 {
    		panic("empty mantissa for y")
    	}
    }
    
    // z = x + y, ignoring signs of x and y for the addition
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  2. src/runtime/cgocall.go

    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    		}
    
    		cgoCheckUnknownPointer(p, msg)
    	}
    }
    
    // cgoCheckUnknownPointer is called for an arbitrary pointer into Go
    // memory. It checks whether that Go memory contains any other
    // pointer into unpinned Go memory. If it does, we panic.
    // The return values are unused but useful to see in panic tracebacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. src/slices/iter.go

    // All sub-slices are clipped to have no capacity beyond the length.
    // If s is empty, the sequence is empty: there is no empty slice in the sequence.
    // Chunk panics if n is less than 1.
    func Chunk[Slice ~[]E, E any](s Slice, n int) iter.Seq[Slice] {
    	if n < 1 {
    		panic("cannot be less than 1")
    	}
    
    	return func(yield func(Slice) bool) {
    		for i := 0; i < len(s); i += n {
    			// Clamp the last chunk to the slice bound as necessary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/debug/stack.go

    // fatal crash message.
    type CrashOptions struct {
    	/* for future expansion */
    }
    
    // SetCrashOutput configures a single additional file where unhandled
    // panics and other fatal errors are printed, in addition to standard error.
    // There is only one additional file: calling SetCrashOutput again overrides
    // any earlier call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/environment/base.go

    // strictCost is used to determine whether to enforce strict cost calculation for CEL expressions.
    func MustBaseEnvSet(ver *version.Version, strictCost bool) *EnvSet {
    	if ver == nil {
    		panic("version must be non-nil")
    	}
    	if len(ver.Components()) < 2 {
    		panic(fmt.Sprintf("version must contain an major and minor component, but got: %s", ver.String()))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 15:51:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/internal/trace/reader_test.go

    		for {
    			ev, err := r.ReadEvent()
    			if err != nil {
    				break
    			}
    
    			if !testGetters {
    				continue
    			}
    			// Make sure getters don't do anything that panics
    			switch ev.Kind() {
    			case trace.EventLabel:
    				ev.Label()
    			case trace.EventLog:
    				ev.Log()
    			case trace.EventMetric:
    				ev.Metric()
    			case trace.EventRangeActive, trace.EventRangeBegin:
    				ev.Range()
    			case trace.EventRangeEnd:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/runtime/crash_test.go

    	output := runTestProg(t, "testprog", "RecursivePanic3")
    	want := `panic: first panic
    
    `
    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    
    }
    
    func TestRecursivePanic4(t *testing.T) {
    	output := runTestProg(t, "testprog", "RecursivePanic4")
    	want := `panic: first panic [recovered]
    	panic: second panic
    `
    	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)
  8. src/cmd/cgo/internal/testplugin/plugin_test.go

    	} {
    		if err := cgotest.OverlayDir(dstRoot, srcRoot); err != nil {
    			log.Panic(err)
    		}
    		prettyPrintf("mkdir -p %s\n", dstRoot)
    		prettyPrintf("rsync -a %s/ %s\n", srcRoot, dstRoot)
    
    		if err := os.WriteFile(filepath.Join(dstRoot, "go.mod"), []byte("module testplugin\n"), 0666); err != nil {
    			log.Panic(err)
    		}
    		prettyPrintf("echo 'module testplugin' > %s/go.mod\n", dstRoot)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/log/slog/value_test.go

    	for i, v1 := range vals {
    		for j, v2 := range vals {
    			got := v1.Equal(v2)
    			want := i == j
    			if got != want {
    				t.Errorf("%v.Equal(%v): got %t, want %t", v1, v2, got, want)
    			}
    		}
    	}
    }
    
    func panics(f func()) (b bool) {
    	defer func() {
    		if x := recover(); x != nil {
    			b = true
    		}
    	}()
    	f()
    	return false
    }
    
    func TestValueString(t *testing.T) {
    	for _, test := range []struct {
    		v    Value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modindex/read.go

    				*errp = err
    				return
    			}
    			if isTest {
    				panic(err)
    			}
    			base.Fatalf("%v", err)
    		}
    		// The panic was likely not caused by SetPanicOnFault.
    		panic(e)
    	}
    }
    
    // fromBytes returns a *Module given the encoded representation.
    func fromBytes(moddir string, data []byte) (m *Module, err error) {
    	if !enabled {
    		panic("use of index")
    	}
    
    	defer unprotect(protect(), &err)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top