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/testdata/testprogcgo/callback.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/runtime/testdata') diff --git a/src/runtime/testdata/testprogcgo/callback.go b/src/runtime/testdata/testprogcgo/callback.go index 39993f13a6..319572fe10 100644 --- a/src/runtime/testdata/testprogcgo/callback.go +++ b/src/runtime/testdata/testprogcgo/callback.go @@ -38,21 +38,10 @@ import ( func init() { register("CgoCallbackGC", CgoCallbackGC) - register("CgoToGoCallGoexit", CgoToGoCallGoexit) } -func CgoToGoCallGoexit() { - goexit = true - C.foo() -} - -var goexit = false - //export go_callback func go_callback() { - if goexit { - runtime.Goexit() - } if e := extraMInUse.Load(); e == 0 { fmt.Printf("in callback extraMInUse got %d want >0\n", e) os.Exit(1) -- cgit v1.3