diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-20 08:17:21 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-20 08:17:21 +0400 |
| commit | 13081942042636c6ebeee837a25977f7fdf65f1e (patch) | |
| tree | 8b127a3b403f2a9f27636f943b9403c6b9fdb3bc /src/pkg/runtime/proc.c | |
| parent | d4cbc80d106a3f3b53631aa60b400c790b14bb52 (diff) | |
| download | go-13081942042636c6ebeee837a25977f7fdf65f1e.tar.xz | |
runtime: zeroize g->fnstart to not prevent GC of the closure
Fixes #5493.
R=golang-dev, minux.ma, iant
CC=golang-dev
https://golang.org/cl/9557043
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 4875ad87c9..10170d874e 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -1232,6 +1232,7 @@ static void goexit0(G *gp) { gp->status = Gdead; + gp->fnstart = nil; gp->m = nil; gp->lockedm = nil; m->curg = nil; |
