Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,815 for panicIP (0.18 sec)

  1. src/net/netip/netip_test.go

    )
    
    func TestNoAllocs(t *testing.T) {
    	// Wrappers that panic on error, to prove that our alloc-free
    	// methods are returning successfully.
    	panicIP := func(ip Addr, err error) Addr {
    		if err != nil {
    			panic(err)
    		}
    		return ip
    	}
    	panicPfx := func(pfx Prefix, err error) Prefix {
    		if err != nil {
    			panic(err)
    		}
    		return pfx
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  2. src/runtime/panic.go

    // This is used to try hard to get a panic stack trace out when exiting.
    var runningPanicDefers atomic.Uint32
    
    // panicking is non-zero when crashing the program for an unrecovered panic.
    var panicking atomic.Uint32
    
    // paniclk is held while printing the panic information and stack trace,
    // so that two concurrent panics don't overlap their output.
    var paniclk mutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. src/runtime/panic32.go

    func goPanicExtendIndex(hi int, lo uint, y int) {
    	panicCheck1(getcallerpc(), "index out of range")
    	panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: true, y: y, code: boundsIndex})
    }
    func goPanicExtendIndexU(hi uint, lo uint, y int) {
    	panicCheck1(getcallerpc(), "index out of range")
    	panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: false, y: y, code: boundsIndex})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"output","Test":"TestPanic","Output":"panic(0x1110ea0, 0x116aea0)\n"}
    {"Action":"output","Test":"TestPanic","Output":"\t/go/src/runtime/panic.go:679 +0x1b2\n"}
    {"Action":"output","Test":"TestPanic","Output":"command-line-arguments.TestPanic(0xc000092100)\n"}
    {"Action":"output","Test":"TestPanic","Output":"\ta_test.go:6 +0x39\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/testdata/panic.test

    --- FAIL: TestPanic (0.00s)
    panic: oops [recovered]
    	panic: oops
    
    goroutine 7 [running]:
    testing.tRunner.func1(0xc000092100)
    	/go/src/testing/testing.go:874 +0x3a3
    panic(0x1110ea0, 0x116aea0)
    	/go/src/runtime/panic.go:679 +0x1b2
    command-line-arguments.TestPanic(0xc000092100)
    	a_test.go:6 +0x39
    testing.tRunner(0xc000092100, 0x114f500)
    	go/src/testing/testing.go:909 +0xc9
    created by testing.(*T).Run
    	go/src/testing/testing.go:960 +0x350
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 30 20:46:44 UTC 2019
    - 479 bytes
    - Viewed (0)
  6. src/runtime/defer_test.go

    		}
    	}()
    	defer func() {
    		panic("panic2")
    	}()
    	panic("panic1")
    }
    
    // This tests that recover() does not succeed unless it is called directly from a
    // defer function that is directly called by the panic.  Here, we first call it
    // from a defer function that is created by the defer function called directly by
    // the panic.  In
    func TestRecoverMatching(t *testing.T) {
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  7. src/runtime/callers_test.go

    		// recovered, there is no remaining panic on the stack.
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallersEqual(t, pcs, want)
    	}()
    	defer func() {
    		r := recover()
    		if r != "panic2" {
    			t.Fatalf("got %v, wanted %v", r, "panic2")
    		}
    	}()
    	defer func() {
    		// panic2 aborts/replaces panic1, because it is a recursive panic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/panic.c

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 239 bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/panic.go

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 312 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    func WithPanicRecovery(handler http.Handler, resolver request.RequestInfoResolver) http.Handler {
    	return withPanicRecovery(handler, func(w http.ResponseWriter, req *http.Request, err interface{}) {
    		if err == http.ErrAbortHandler {
    			// Honor the http.ErrAbortHandler sentinel panic value
    			//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top