Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,796 for panicCh (0.24 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/routine.go

    			handler.ServeHTTP(w, req)
    			return
    		}
    
    		req = req.WithContext(WithTask(ctx, &Task{}))
    		panicCh := make(chan any, 1)
    		go func() {
    			defer func() {
    				if r := recover(); r != nil {
    					panicCh <- r
    				}
    				close(panicCh)
    			}()
    			handler.ServeHTTP(w, req)
    		}()
    
    		if p, ok := <-panicCh; ok {
    			panic(p)
    		}
    
    		ctx = req.Context()
    		if t := TaskFrom(ctx); t != nil && t.Func != nil {
    			t.Func()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/testing/panic_test.go

    		{
    			desc:  "Issue 48502: call runtime.Goexit in t.Cleanup after panic",
    			flags: []string{"-test.run=^TestGoexitInCleanupAfterPanicHelper$"},
    			want: `panic: die
    	panic: test executed panic(nil) or runtime.Goexit`,
    		},
    		{
    			desc:  "Issue 48515: call t.Run in t.Cleanup should trigger panic",
    			flags: []string{"-test.run=^TestCallRunInCleanupHelper$"},
    			want:  `panic: testing: t.Run called during t.Cleanup`,
    		},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go

    func (r *result) Return() (runtime.Object, error) {
    	switch {
    	case r.reason != nil:
    		// panic has higher precedence, the goroutine executing ResultFunc has panic'd,
    		// so propagate a panic to the caller.
    		panic(r.reason)
    	case r.err != nil:
    		return nil, r.err
    	default:
    		// if we are here, it means neither a panic, nor an error
    		if status, ok := r.object.(*metav1.Status); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 14:20:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/internal/language/tags.go

    	b, err := ParseBase(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    // MustParseScript is like ParseScript, but panics if the given script cannot be
    // parsed. It simplifies safe initialization of Script values.
    func MustParseScript(s string) Script {
    	scr, err := ParseScript(s)
    	if err != nil {
    		panic(err)
    	}
    	return scr
    }
    
    // MustParseRegion is like ParseRegion, but panics if the given region cannot be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top