- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for goexit0 (0.14 sec)
-
src/runtime/preempt.go
throw("invalid g status") case _Gdead: // Nothing to suspend. // // preemptStop may need to be cleared, but // doing that here could race with goroutine // reuse. Instead, goexit0 clears it. return suspendGState{dead: true} case _Gcopystack: // The stack is being copied. We need to wait // until this is done. case _Gpreempted:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 15.1K bytes - Viewed (0) -
src/iter/pull_test.go
return func(yield func(int) bool) { runtime.Goexit() } } func goexitCleanupSeq() Seq[int] { return func(yield func(int) bool) { for { if !yield(55) { runtime.Goexit() } } } } func TestPull2Goexit(t *testing.T) { t.Run("next", func(t *testing.T) { var next func() (int, int, bool) var stop func() if !goexits(t, func() { next, stop = Pull2(goexitSeq2())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/runtime/stubs.go
type neverCallThisFunction struct{} // goexit is the return stub at the top of every goroutine call stack. // Each goroutine stack is constructed as if goexit called the // goroutine's entry point function, so that when the entry point // function returns, it will return to goexit, which will call goexit1 // to perform the actual exit. // // This function must never be called directly. Call goexit1 instead.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
src/runtime/panic.go
// If all other goroutines exit, the program crashes. func Goexit() { // Create a panic object for Goexit, so we can recognize when it might be // bypassed by a recover(). var p _panic p.goexit = true p.start(getcallerpc(), unsafe.Pointer(getcallersp())) for { fn, ok := p.nextDefer() if !ok { break } fn() } goexit1() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
c.Fail() // Calling runtime.Goexit will exit the goroutine, which // will run the deferred functions in this goroutine, // which will eventually run the deferred lines in tRunner, // which will signal to the test loop that this test is done. // // A previous version of this code said: // // c.duration = ... // c.signal <- c.self // runtime.Goexit() //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/runtime/crash_test.go
want := "no goroutines (main called runtime.Goexit) - deadlock!" if !strings.Contains(output, want) { t.Fatalf("output:\n%s\n\nwant output containing: %s", output, want) } } func TestGoexitDefer(t *testing.T) { c := make(chan struct{}) go func() { defer func() { r := recover() if r != nil { t.Errorf("non-nil recover during Goexit") } c <- struct{}{} }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/runtime/asm_riscv64.s
MOV savedX27-8(SP), g RET // func goexit(neverCallThisFunction) // The top-most function running on a goroutine // returns to goexit+PCQuantum. TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 MOV ZERO, ZERO // NOP JMP runtime·goexit1(SB) // does not return // traceback from goexit1 must hit code range of goexit MOV ZERO, ZERO // NOP
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 27K bytes - Viewed (0) -
src/runtime/pprof/proto.go
// the stack and we have return PCs anyway. frames := runtime.CallersFrames([]uintptr{addr}) frame, more := frames.Next() if frame.Function == "runtime.goexit" { // Short-circuit if we see runtime.goexit so the loop // below doesn't allocate a useless empty location. return nil, 0 } symbolizeResult := lookupTried
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 13 20:40:52 UTC 2023 - 25.7K bytes - Viewed (0) -
src/runtime/os_plan9.go
if ns == 0 { return scratch } return ns } var goexits = []byte("go: exit ") var emptystatus = []byte("\x00") var exiting uint32 func goexitsall(status *byte) { var buf [_ERRMAX]byte if !atomic.Cas(&exiting, 0, 1) { return } getg().m.locks++ n := copy(buf[:], goexits) n = copy(buf[n:], gostringnocopy(status)) pid := getpid()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 10.3K bytes - Viewed (0) -
src/runtime/asm_mips64x.s
MOVV savedG-8(SP), g MOVV savedR23-16(SP), R23 RET // The top-most function running on a goroutine // returns to goexit+PCQuantum. TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 NOR R0, R0 // NOP JAL runtime·goexit1(SB) // does not return // traceback from goexit1 must hit code range of goexit NOR R0, R0 // NOP TEXT ·checkASM(SB),NOSPLIT,$0-1 MOVW $1, R1 MOVB R1, ret+0(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 19:45:59 UTC 2023 - 24.3K bytes - Viewed (0)