File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ func deferreturn() {
615615// the program continues execution of other goroutines.
616616// If all other goroutines exit, the program crashes.
617617//
618- // It crashes if called from a thread created by a not Go runtime.
618+ // It crashes if called from a thread not created by the Go runtime.
619619func Goexit () {
620620 // Create a panic object for Goexit, so we can recognize when it might be
621621 // bypassed by a recover().
Original file line number Diff line number Diff line change @@ -4322,7 +4322,7 @@ func gdestroy(gp *g) {
43224322 if locked && mp .lockedInt != 0 {
43234323 print ("runtime: mp.lockedInt = " , mp .lockedInt , "\n " )
43244324 if mp .isextra {
4325- throw ("call runtime.Goexit in thread created during a not Go runtime" )
4325+ throw ("runtime.Goexit called in a thread that was not created by the Go runtime" )
43264326 }
43274327 throw ("exited a goroutine internally locked to the OS thread" )
43284328 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import "runtime"
3131
3232func init () {
3333 register ("CgoToGoCallGoexit" , func () {
34- println ("expect: call runtime.Goexit in thread created during a not Go runtime" )
34+ println ("expect: runtime.Goexit called in a thread that was not created by the Go runtime" )
3535 CgoToGoCallGoexit ()
3636 })
3737}
You can’t perform that action at this time.
0 commit comments