]> Cypherpunks repositories - gostls13.git/commit
runtime: don't do a plain throw when throwsplit == true
authorIan Lance Taylor <iant@golang.org>
Mon, 16 May 2016 22:39:43 +0000 (15:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 19 May 2016 04:37:45 +0000 (04:37 +0000)
commit1f7a0d4b5ec7ef94b96755e9b95168abf86e9d71
treeda7f50b6a30b70afb57bf46cd2f2d7bbffce9b1c
parent2a12035f8ec18f0a577853fda78faf2826397131
runtime: don't do a plain throw when throwsplit == true

The test case in #15639 somehow causes an invalid syscall frame. The
failure is obscured because the throw occurs when throwsplit == true,
which causes a "stack split at bad time" error when trying to print the
throw message.

This CL fixes the "stack split at bad time" by using systemstack. No
test because there shouldn't be any way to trigger this error anyhow.

Update #15639.

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