]> Cypherpunks repositories - gostls13.git/commit
runtime: throw in unreachable exitThread
authorMichael Pratt <mpratt@google.com>
Tue, 18 Oct 2022 16:11:43 +0000 (12:11 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 18 Oct 2022 20:58:37 +0000 (20:58 +0000)
commit1f068f0dc7bc997446a7aac44cfc70746ad918e0
tree18641c5f4a37a7b0784a581c078a43f691e307ba
parente252dcf9d38ce9192bccacb7e33867cbfbd22b6c
runtime: throw in unreachable exitThread

Several OSes don't ever reach exitThread, On AIX, Plan9, Solaris, and
Windows, we throw if this function is accidentally reached. Do the same
on Darwin and OpenBSD for consistency.

Change-Id: Icd189b11179755a28b3ec48b267349c57facbf24
Reviewed-on: https://go-review.googlesource.com/c/go/+/443717
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/runtime/sys_darwin.go
src/runtime/sys_openbsd2.go