Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,835 for panic2 (0.13 sec)

  1. src/runtime/callers_test.go

    		testCallersEqual(t, pcs, want)
    	}()
    	func() {
    		defer func() {
    			r := recover()
    			if r != "panic2" {
    				t.Fatalf("got %v, wanted %v", r, "panic2")
    			}
    		}()
    		func() {
    			defer func() {
    				// Again, panic2 aborts/replaces panic1
    				panic("panic2")
    			}()
    			panic("panic1")
    		}()
    	}()
    }
    
    func TestCallersNilPointerPanic(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. 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)
  3. src/internal/types/testdata/check/builtins0.go

    	_ = new(f1 /* ERROR "not a type" */ ())
    }
    
    func panic1() {
    	panic() // ERROR "not enough arguments"
    	panic(1, 2) // ERROR "too many arguments"
    	panic(0)
    	panic("foo")
    	panic(false)
    	panic(1<<10)
    	panic(1 << /* ERROR "constant shift overflow" */ 1000)
    	_ = panic /* ERROR "used as value" */ (0)
    
    	var s []byte
    	panic(s)
    	panic(s... /* ERROR "invalid use of ..." */ )
    }
    
    func panic2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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