File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ func deferreturn() {
615
615
// the program continues execution of other goroutines.
616
616
// If all other goroutines exit, the program crashes.
617
617
//
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.
619
619
func Goexit () {
620
620
// Create a panic object for Goexit, so we can recognize when it might be
621
621
// bypassed by a recover().
Original file line number Diff line number Diff line change @@ -4322,7 +4322,7 @@ func gdestroy(gp *g) {
4322
4322
if locked && mp .lockedInt != 0 {
4323
4323
print ("runtime: mp.lockedInt = " , mp .lockedInt , "\n " )
4324
4324
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" )
4326
4326
}
4327
4327
throw ("exited a goroutine internally locked to the OS thread" )
4328
4328
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import "runtime"
31
31
32
32
func init () {
33
33
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" )
35
35
CgoToGoCallGoexit ()
36
36
})
37
37
}
You can’t perform that action at this time.
0 commit comments