Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for dopanic_m (0.2 sec)

  1. src/runtime/panic.go

    	// things worse if the runtime is in a bad state.
    	systemstack(func() {
    		if isSecureMode() {
    			exit(2)
    		}
    
    		startpanic_m()
    
    		if dopanic_m(gp, pc, sp) {
    			// crash uses a decent amount of nosplit stack and we're already
    			// low on stack in throw, so crash on the system stack (unlike
    			// fatalpanic).
    			crash()
    		}
    
    		exit(2)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    }
    
    func TestTimeout(t *testing.T) {
    	origReallyCrash := runtime.ReallyCrash
    	runtime.ReallyCrash = false
    	defer func() {
    		runtime.ReallyCrash = origReallyCrash
    	}()
    
    	sendResponse := make(chan string, 1)
    	doPanic := make(chan interface{}, 1)
    	writeErrors := make(chan error, 1)
    	gotPanic := make(chan interface{}, 1)
    	timeout := make(chan time.Time, 1)
    	resp := "test response"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. src/runtime/defer_test.go

    	foo.element.z = 4
    	defer func(element bigStruct) {
    		save3 = element.z
    	}(foo.element)
    	defer func(element bigStruct) {
    		save4 = element.z
    	}(sideeffect2(foo).element)
    }
    
    //go:noinline
    func doPanic() {
    	panic("Test panic")
    }
    
    func TestDeferForFuncWithNoExit(t *testing.T) {
    	cond := 1
    	defer func() {
    		if cond != 2 {
    			t.Fatalf("cond: wanted 2, got %v", cond)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. src/testing/fuzz.go

    				f.signal <- true
    			}
    		}()
    
    		// If we recovered a panic or inappropriate runtime.Goexit, fail the test,
    		// flush the output log up to the root, then panic.
    		doPanic := func(err any) {
    			f.Fail()
    			if r := f.runCleanup(recoverAndReturnPanic); r != nil {
    				f.Logf("cleanup panicked with %v", r)
    			}
    			for root := &f.common; root.parent != nil; root = root.parent {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top