Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for goexits (0.17 sec)

  1. src/iter/iter.go

    			// Propagate panics and goexits from seq.
    			if panicValue != nil {
    				if panicValue == goexitPanicValue {
    					// Propagate runtime.Goexit from seq.
    					runtime.Goexit()
    				} else {
    					panic(panicValue)
    				}
    			}
    		}
    	}
    	return next, stop
    }
    
    // goexitPanicValue is a sentinel value indicating that an iterator
    // exited via runtime.Goexit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue11256.go

    			var buf [1024]byte
    			buf[0]++
    			for atomic.LoadInt32(&done) == 0 {
    				runtime.Gosched()
    			}
    			atomic.StoreInt32(&done, 0)
    			// Exit without unwinding stack barriers.
    			runtime.Goexit()
    		}()
    
    		// Generate some garbage.
    		x[i] = make([]byte, 1024*1024)
    
    		// Give GC some time to install stack barriers in the G.
    		time.Sleep(50 * time.Microsecond)
    		atomic.StoreInt32(&done, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 29 15:02:30 UTC 2015
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_mutate_fail.txt

    }
    
    func FuzzNilPanic(f *testing.F) {
    	if isWorker() {
    		panic(nil)
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    }
    
    func FuzzGoexit(f *testing.F) {
    	if isWorker() {
    		runtime.Goexit()
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    }
    
    func FuzzExit(f *testing.F) {
    	if isWorker() {
    		os.Exit(99)
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/deadlock.go

    	// 3. call goexit
    	// Goexit runs the #2 defer. Its panic
    	// is caught by the #1 defer.  For Goexit, we explicitly
    	// resume execution in the Goexit loop, instead of resuming
    	// execution in the caller (which would make the Goexit disappear!)
    	defer func() {
    		r := recover()
    		if r == nil {
    			panic("bad recover")
    		}
    	}()
    	defer func() {
    		panic("hello")
    	}()
    	runtime.Goexit()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_example_goexit.txt

    stdout '(?s)--- PASS.*--- FAIL.*'
    stdout 'panic: test executed panic\(nil\) or runtime\.Goexit'
    
    -- go.mod --
    module examplegoexit
    
    go 1.16
    -- example_test.go --
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func ExamplePass() {
    	fmt.Println("pass")
    	// Output:
    	// pass
    }
    
    func ExampleGoexit() {
    	runtime.Goexit()
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 403 bytes
    - Viewed (0)
  6. test/fixedbugs/bug206.go

    main·f+0x26 /home/gri/go/test/bugs/bug206.go:16
    	main·f(0x2b9560, 0x0)
    main·main+0xc3 /home/gri/go/test/bugs/bug206.go:23
    	main·main()
    mainstart+0xf /home/gri/go/src/pkg/runtime/amd64/asm.s:55
    	mainstart()
    goexit /home/gri/go/src/pkg/runtime/proc.c:133
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_cleanup.txt

    # Cleanup should run after F.Skip.
    go test -run=FuzzTargetSkip
    stdout cleanup
    
    # Cleanup should run after F.Fatal.
    ! go test -run=FuzzTargetFatal
    stdout cleanup
    
    # Cleanup should run after an unexpected runtime.Goexit.
    ! go test -run=FuzzTargetGoexit
    stdout cleanup
    
    # Cleanup should run after panic.
    ! go test -run=FuzzTargetPanic
    stdout cleanup
    
    # Cleanup should run in fuzz function on seed corpus.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue8158.go

    	go f2(c)
    	<-c
    }
    
    func f1(done chan bool) {
    	defer func() {
    		recover()
    		done <- true
    		runtime.Goexit() // left stack-allocated Panic struct on gp->panic stack
    	}()
    	panic("p")
    }
    
    func f2(done chan bool) {
    	defer func() {
    		recover()
    		done <- true
    		runtime.Goexit()
    	}()
    	time.Sleep(10 * time.Millisecond) // overwrote Panic struct with Timer struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 767 bytes
    - Viewed (0)
  9. test/fixedbugs/bug286.go

    	runtime.panic(0x0, 0x24e0a0)
    main.main+0xef /home/gri/go1/test/bugs/bug286.go:76
    	main.main()
    mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60
    	mainstart()
    goexit /home/gri/go1/src/pkg/runtime/proc.c:145
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue5963.go

    	defer func() {
    		c <- 0
    	}()
    	go func() {
    		os.Exit(<-c)
    	}()
    	runtime.Goexit()
    }
    
    func main() {
    }
    
    /* Before fix:
    
    invalid m->locked = 2
    fatal error: internal lockOSThread error
    
    goroutine 2 [runnable]:
    runtime.MHeap_Scavenger()
    	/Users/rsc/g/go/src/pkg/runtime/mheap.c:438
    runtime.goexit()
    	/Users/rsc/g/go/src/pkg/runtime/proc.c:1313
    created by runtime.main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 929 bytes
    - Viewed (0)
Back to top