Skip to content

Commit 767bb61

Browse files
new
Change-Id: I46cf050fc069555b87dc2450c5aa38d550aa6a9e
1 parent fb82b6f commit 767bb61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/runtime/panic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
619619
func Goexit() {
620620
// Create a panic object for Goexit, so we can recognize when it might be
621621
// bypassed by a recover().

src/runtime/proc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/runtime/testdata/testprogcgo/goexit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import "runtime"
3131

3232
func 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
}

0 commit comments

Comments
 (0)