]> Cypherpunks repositories - gostls13.git/commit
runtime: don't terminate locked OS threads on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 16 Oct 2017 22:31:56 +0000 (00:31 +0200)
committerDavid du Colombier <0intro@gmail.com>
Tue, 17 Oct 2017 15:15:12 +0000 (15:15 +0000)
commitf4faca60135bea528a29f454876efa642b00665e
tree59945e8ac17ea7711b69026007c5ea5cac8c10a0
parentd155b32f8de6a2a30c0567ec44f90ffab80ed6dc
runtime: don't terminate locked OS threads on Plan 9

CL 46037 and CL 46038 implemented termination of
locked OS threads when the goroutine exits.

However, this behavior leads to crashes of Go programs
using runtime.LockOSThread on Plan 9. This is notably
the case of the os/exec and net packages.

This change disables termination of locked OS threads
on Plan 9.

Updates #22227.

Change-Id: If9fa241bff1c0b68e7e9e321e06e5203b3923212
Reviewed-on: https://go-review.googlesource.com/71230
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/proc.go