Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 885 for panicIP (0.17 sec)

  1. src/syscall/dll_windows.go

    		}
    	}
    	d := &DLL{
    		Name:   name,
    		Handle: Handle(h),
    	}
    	return d, nil
    }
    
    // MustLoadDLL is like [LoadDLL] but panics if load operation fails.
    func MustLoadDLL(name string) *DLL {
    	d, e := LoadDLL(name)
    	if e != nil {
    		panic(e)
    	}
    	return d
    }
    
    // FindProc searches [DLL] d for procedure named name and returns [*Proc]
    // if found. It returns an error if search fails.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    		fn(ctx, r)
    	}
    	if ReallyCrash {
    		// Actually proceed to panic.
    		panic(r)
    	}
    }
    
    // logPanic logs the caller tree when a panic occurs (except in the special case of http.ErrAbortHandler).
    func logPanic(ctx context.Context, r interface{}) {
    	if r == http.ErrAbortHandler {
    		// honor the http.ErrAbortHandler sentinel panic value:
    		//   ErrAbortHandler is a sentinel panic value to abort a handler.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/internal/trace/event.go

    		m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]}
    	default:
    		panic(fmt.Sprintf("internal error: unexpected event type for Metric kind: %s", go122.EventString(e.base.typ)))
    	}
    	return m
    }
    
    // Label returns details about a Label event.
    //
    // Panics if Kind != EventLabel.
    func (e Event) Label() Label {
    	if e.Kind() != EventLabel {
    		panic("Label called on non-Label event")
    	}
    	if e.base.typ != go122.EvGoLabel {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. src/crypto/subtle/xor.go

    // returning n, the number of bytes written to dst.
    // If dst does not have length at least n,
    // XORBytes panics without writing anything to dst.
    func XORBytes(dst, x, y []byte) int {
    	n := min(len(x), len(y))
    	if n == 0 {
    		return 0
    	}
    	if n > len(dst) {
    		panic("subtle.XORBytes: dst too short")
    	}
    	xorBytes(&dst[0], &x[0], &y[0], n) // arch-specific
    	return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:50:40 UTC 2024
    - 618 bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go

    )
    
    func TestPropogatingPanic(t *testing.T) {
    	var buf bytes.Buffer
    	klog.SetOutput(&buf)
    	klog.LogToStderr(false)
    	defer klog.LogToStderr(true)
    
    	panicMsg := "panic as designed"
    	handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		panic(panicMsg)
    	})
    	resolver := &request.RequestInfoFactory{
    		APIPrefixes:          sets.NewString("api", "apis"),
    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/internal/trace/resources.go

    //
    // r.Kind must be ResourceGoroutine or this function will panic.
    func (r ResourceID) Goroutine() GoID {
    	if r.Kind != ResourceGoroutine {
    		panic(fmt.Sprintf("attempted to get GoID from %s resource ID", r.Kind))
    	}
    	return GoID(r.id)
    }
    
    // Proc obtains a ProcID from the resource ID.
    //
    // r.Kind must be ResourceProc or this function will panic.
    func (r ResourceID) Proc() ProcID {
    	if r.Kind != ResourceProc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/internal/runtime/exithook/hooks.go

    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    // If an exit hook panics, Run will throw with the panic on the stack.
    // If an exit hook invokes exit in the same goroutine, the goroutine will throw.
    // If an exit hook invokes exit in another goroutine, that exit will block.
    func Run(code int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/flag/flag_test.go

      -ZP0 value
        	a flag whose String method panics when it is zero
      -ZP1 value
        	a flag whose String method panics when it is zero
      -maxT timeout
        	set timeout for dial
    
    panic calling String method on zero flag_test.zeroPanicker for flag ZP0: panic!
    panic calling String method on zero flag_test.zeroPanicker for flag ZP1: panic!
    `
    
    func TestPrintDefaults(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    	}()
    	select {
    	case err := <-resultCh:
    		// panic if error occurs; stop otherwise
    		if err != nil {
    			panic(err)
    		}
    		return
    	case <-timeoutCh:
    		defer func() {
    			// resultCh needs to have a reader, since the function doing
    			// the work needs to send to it. This is defer'd to ensure it runs
    			// ever if the post timeout work itself panics.
    			go func() {
    				timedOutAt := time.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/runtime/testdata/testexithooks/testexithooks.go

    	flag.Parse()
    	switch *modeflag {
    	case "simple":
    		testSimple()
    	case "goodexit":
    		testGoodExit()
    	case "badexit":
    		testBadExit()
    	case "panics":
    		testPanics()
    	case "callsexit":
    		testHookCallsExit()
    	case "exit2":
    		testExit2()
    	default:
    		panic("unknown mode")
    	}
    }
    
    func testSimple() {
    	f1 := func() { println("foo") }
    	f2 := func() { println("bar") }
    	exithook.Add(exithook.Hook{F: f1})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top