From a9bd84e03786e8bd4bfb3780ce3283b0f3e1f3bf Mon Sep 17 00:00:00 2001 From: Tim King Date: Tue, 10 Sep 2024 22:56:40 +0000 Subject: Revert "runtime: Goexit on C-created thread report more useful error message" This reverts CL 602296. Reason for revert: Failing on several builders. Change-Id: I889c566d34294032c330d4f9402300ad0d5d3bf5 Reviewed-on: https://go-review.googlesource.com/c/go/+/611919 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- src/runtime/proc.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/runtime/proc.go') diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 0909d138ff..c4db86225d 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -4321,9 +4321,6 @@ func gdestroy(gp *g) { if locked && mp.lockedInt != 0 { print("runtime: mp.lockedInt = ", mp.lockedInt, "\n") - if mp.isextra { - throw("runtime.Goexit called in a thread that was not created by the Go runtime") - } throw("exited a goroutine internally locked to the OS thread") } gfput(pp, gp) -- cgit v1.3-5-g9baa