]> Cypherpunks repositories - gostls13.git/commit
runtime: make sure associated defers are copyable before trying to copy a stack.
authorKeith Randall <khr@golang.org>
Tue, 8 Apr 2014 00:40:00 +0000 (17:40 -0700)
committerKeith Randall <khr@golang.org>
Tue, 8 Apr 2014 00:40:00 +0000 (17:40 -0700)
commitfc6753c7cd788cbd50cb80e18764541934141e63
tree8db3462b4512a51a79257584a180c4e2d57414c8
parentaf923df89ee65428b0a8cba7323e9397926ea0e6
runtime: make sure associated defers are copyable before trying to copy a stack.

Defers generated from cgo lie to us about their argument layout.
Mark those defers as not copyable.

CL 83820043 contains an additional test for this code and should be
checked in (and enabled) after this change is in.

Fixes bug 7695.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/84740043
src/pkg/runtime/stack.c
src/pkg/runtime/stack_test.go