- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for goexit0 (0.2 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
test/fixedbugs/bug286.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
src/testing/panic_test.go
testCases := []struct { desc string flags []string want string }{ { desc: "Issue 48502: call runtime.Goexit in t.Cleanup after panic", flags: []string{"-test.run=^TestGoexitInCleanupAfterPanicHelper$"}, want: `panic: die panic: test executed panic(nil) or runtime.Goexit`, }, { desc: "Issue 48515: call t.Run in t.Cleanup should trigger panic",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:49:24 UTC 2023 - 7.4K bytes - Viewed (0) -
src/cmd/internal/objabi/funcid.go
"corostart": abi.FuncID_corostart, "debugCallV2": abi.FuncID_debugCallV2, "gcBgMarkWorker": abi.FuncID_gcBgMarkWorker, "rt0_go": abi.FuncID_rt0_go, "goexit": abi.FuncID_goexit, "gogo": abi.FuncID_gogo, "gopanic": abi.FuncID_gopanic, "handleAsyncEvent": abi.FuncID_handleAsyncEvent, "main": abi.FuncID_runtime_main,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 21:33:59 UTC 2023 - 1.6K bytes - Viewed (0)