aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-03-08 17:48:22 -0500
committerAustin Clements <austin@google.com>2018-03-08 23:35:46 +0000
commit5d22cebb1272b3761860c5fa9ee82ceb3d94c628 (patch)
tree208665ac819367aaaf61c8b4d658e93727ad385c /src/encoding/csv
parent60a9e5d613d6de21735e54ca62246e3f8ef8c8d3 (diff)
downloadgo-5d22cebb1272b3761860c5fa9ee82ceb3d94c628.tar.xz
runtime: explain and enforce that _panic values live on the stack
It's a bit mysterious that _defer.sp is a uintptr that gets stack-adjusted explicitly while _panic.argp is an unsafe.Pointer that doesn't, but turns out to be critically important when a deferred function grows the stack before doing a recover. Add a comment explaining that this works because _panic values live on the stack. Enforce this by marking _panic go:notinheap. Change-Id: I9ca49e84ee1f86d881552c55dccd0662b530836b Reviewed-on: https://go-review.googlesource.com/99735 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/encoding/csv')
0 files changed, 0 insertions, 0 deletions