Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for G0StackOverflow (0.54 sec)

  1. src/runtime/crash_test.go

    		if runtime.GOOS != "windows" {
    			if want := "PC="; !strings.Contains(string(out), want) {
    				t.Errorf("output does not contain %q:\n%s", want, out)
    			}
    		}
    		return
    	}
    
    	runtime.G0StackOverflow()
    }
    
    // For TestCrashWhileTracing: test a panic without involving the testing
    // harness, as we rely on stdout only containing trace output.
    func init() {
    	if os.Getenv("TEST_CRASH_WHILE_TRACING") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    //go:noinline
    func PanicForTesting(b []byte, i int) byte {
    	return unexportedPanicForTesting(b, i)
    }
    
    //go:noinline
    func unexportedPanicForTesting(b []byte, i int) byte {
    	return b[i]
    }
    
    func G0StackOverflow() {
    	systemstack(func() {
    		g0 := getg()
    		sp := getcallersp()
    		// The stack bounds for g0 stack is not always precise.
    		// Use an artificially small stack, to trigger a stack overflow
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top