Skip to content

Commit fb82b6f

Browse files
runtime: update Goexit document
Change-Id: I641ccc367a3d63a2d695c3d98961911f7b5c9a3c
1 parent a90acc4 commit fb82b6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/panic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ func deferreturn() {
614614
// without func main returning. Since func main has not returned,
615615
// the program continues execution of other goroutines.
616616
// If all other goroutines exit, the program crashes.
617+
//
618+
// It crashes if called from a thread created by a not Go runtime.
617619
func Goexit() {
618620
// Create a panic object for Goexit, so we can recognize when it might be
619621
// bypassed by a recover().

0 commit comments

Comments
 (0)