]> Cypherpunks repositories - gostls13.git/commit
runtime: call throw on systemstack in exitsyscall
authorAustin Clements <austin@google.com>
Wed, 22 Nov 2017 20:26:35 +0000 (15:26 -0500)
committerAustin Clements <austin@google.com>
Wed, 22 Nov 2017 21:44:35 +0000 (21:44 +0000)
commit09739d285085d0a8440bd521d04376c8acc31ecd
tree9392edffee1a17b239b57556f4eceeff9dde51ae
parentc6c0f47e92771c9b4fced87b94c04f66e5d6eba5
runtime: call throw on systemstack in exitsyscall

If exitsyscall tries to grow the stack it will panic, but throw calls
print, which can grow the stack. Move the two bare throws in
exitsyscall to the system stack.

Updates #21431.

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