]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] runtime: simplify freedefer
authorAustin Clements <austin@google.com>
Tue, 3 Aug 2021 21:03:42 +0000 (17:03 -0400)
committerAustin Clements <austin@google.com>
Tue, 3 Aug 2021 21:23:25 +0000 (21:23 +0000)
commit88bd92bb6dd7997b415723c9c4a8d26ebe17634b
tree887790b3ebe50857a2f2af3f231ba8b269d8e283
parent1a0630aef474320e71595ed1a4a984fc7c7bbc0a
[dev.typeparams] runtime: simplify freedefer

Currently, freedefer manually zeros all the fields in the _defer
because simply assigning _defer{} used to cause a nosplit stack
overflow. freedefer is no longer nosplit, so go back to the simpler,
more robust code.

Change-Id: I881f557bab3b1ee7ab29b68e7fb56d0fe6d35d8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/339669
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/panic.go