aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/proc.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 4133b23584..48ce7d6248 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -2671,7 +2671,9 @@ func goexit0(gp *g) {
// Return to mstart, which will release the P and exit
// the thread.
- gogo(&_g_.m.g0.sched)
+ if GOOS != "plan9" { // See golang.org/issue/22227.
+ gogo(&_g_.m.g0.sched)
+ }
}
schedule()
}