Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 742 for recovered (0.13 sec)

  1. src/internal/abi/rangefuncconsts.go

    	RF_EXHAUSTED                      // iterator function return, i.e., sequence is "exhausted"
    	RF_MISSING_PANIC = 4              // body of loop panicked but iterator function defer-recovered it away
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:04:30 UTC 2024
    - 940 bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	}
    	var output string
    	if cgo {
    		output = runTestProg(t, "testprogcgo", "Crash")
    	} else {
    		output = runTestProg(t, "testprog", "Crash")
    	}
    	want := "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n"
    	if output != want {
    		t.Fatalf("output:\n%s\n\nwanted:\n%s", output, want)
    	}
    }
    
    func TestCrashHandler(t *testing.T) {
    	testCrashHandler(t, false)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    	panic("bad")
    	if x < 10 {
    		println("foo")
    	}
    }
    -- deadstuff/deadstuff_test.go --
    package deadstuff
    
    import "testing"
    
    func TestMumble(t *testing.T) {
    	defer func() {
    		if x := recover(); x != nil {
    			println("recovered")
    		}
    	}()
    	downStreamOfPanic(10)
    }
    -- go.mod --
    module M
    
    go 1.21
    -- it/it.go --
    package it
    
    type Ctr interface {
    	Count() int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/crash.go

    	register("StringPanic", StringPanic)
    	register("NilPanic", NilPanic)
    	register("CircularPanic", CircularPanic)
    }
    
    func test(name string) {
    	defer func() {
    		if x := recover(); x != nil {
    			fmt.Printf(" recovered")
    		}
    		fmt.Printf(" done\n")
    	}()
    	fmt.Printf("%s:", name)
    	var s *string
    	_ = *s
    	fmt.Print("SHOULD NOT BE HERE")
    }
    
    func testInNewThread(name string) {
    	c := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/upgrade/node/kubeletconfig.go

    		// Write the configuration for the kubelet down to disk and print the generated manifests instead if dry-running.
    		// If not dry-running, the kubelet config file will be backed up to /etc/kubernetes/tmp/ dir, so that it could be
    		// recovered if there is anything goes wrong.
    		err := upgrade.WriteKubeletConfigFiles(cfg, data.PatchesDir(), dryRun, data.OutputWriter())
    		if err != nil {
    			return err
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/time/tick.go

    //
    // Before Go 1.23, this documentation warned that the underlying
    // [Ticker] would never be recovered by the garbage collector, and that
    // if efficiency was a concern, code should use NewTicker instead and
    // call [Ticker.Stop] when the ticker is no longer needed.
    // As of Go 1.23, the garbage collector can recover unreferenced
    // tickers, even if they haven't been stopped.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/runtime/defer_test.go

    // continue panic processing or be recovered. If the panic P2 does a recover at
    // some point, it will naturally remove the original panic P1 from the stack
    // (since the original panic had to be in frame F or a descendant of F).
    func TestAbortedPanic(t *testing.T) {
    	defer func() {
    		r := recover()
    		if r != nil {
    			t.Fatalf("wanted nil recover, got %v", r)
    		}
    	}()
    	defer func() {
    		r := recover()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. src/runtime/panic.go

    	gp := getg()
    
    	if !p.deferreturn {
    		if gp._panic != p {
    			throw("bad panic stack")
    		}
    
    		if p.recovered {
    			mcall(recovery) // does not return
    			throw("recovery failed")
    		}
    	}
    
    	// The assembler adjusts p.argp in wrapper functions that shouldn't
    	// be visible to recover(), so we need to restore it each iteration.
    	p.argp = add(p.startSP, sys.MinFrameSize)
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. src/runtime/callers_test.go

    			pcs := make([]uintptr, 20)
    			pcs = pcs[:runtime.Callers(0, pcs)]
    			if recover() == nil {
    				t.Fatal("did not panic")
    			}
    			testCallersEqual(t, pcs, want)
    		}()
    		if recover() == nil {
    			t.Fatal("did not panic")
    		}
    		panic(2)
    	}()
    	panic(1)
    }
    
    // Test that a defer after a successful recovery looks like it is called directly
    // from the function with the defers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. src/internal/fuzz/sys_posix.go

    // signals may only be received if signal handlers are changed. For example,
    // SIGSEGV is normally transformed into a panic that causes the process to exit
    // with status 2 if not recovered, which we handle as a crash.
    func isCrashSignal(signal os.Signal) bool {
    	switch signal {
    	case
    		syscall.SIGILL,  // illegal instruction
    		syscall.SIGTRAP, // breakpoint
    		syscall.SIGABRT, // abort() called
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
Back to top