]> Cypherpunks repositories - gostls13.git/commit
runtime: Fix interaction between Goexit and defers
authorKeith Randall <khr@golang.org>
Fri, 19 Sep 2014 23:33:14 +0000 (16:33 -0700)
committerKeith Randall <khr@golang.org>
Fri, 19 Sep 2014 23:33:14 +0000 (16:33 -0700)
commit0306478fe57767530164b43c12969ca91496db47
tree7c3210abe0211520437172cc124d67146d4b4344
parent651bb8e026f94502ed45db1b6284eeddd74570dc
runtime: Fix interaction between Goexit and defers

When running defers, we must check whether the defer
has already been marked as started so we don't run it twice.

Fixes #8774.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/142280044
src/runtime/crash_test.go
src/runtime/panic.go