aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stack.c
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-08-19 12:20:50 -0700
committerKeith Randall <khr@golang.org>2013-08-19 12:20:50 -0700
commit6401e0f83f29b0f3b03b9d07ebcab56e5ddb461b (patch)
treeb0f1f31288ff73d03ab415e9c78afadac5023318 /src/pkg/runtime/stack.c
parent88ee849a8a1c4e3b63874fcbb8a5bb6eebeeb98b (diff)
downloadgo-6401e0f83f29b0f3b03b9d07ebcab56e5ddb461b.tar.xz
runtime: don't run finalizers if we're still on the g0 stack.
R=golang-dev, rsc, dvyukov, khr CC=golang-dev https://golang.org/cl/11386044
Diffstat (limited to 'src/pkg/runtime/stack.c')
-rw-r--r--src/pkg/runtime/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c
index dd823705da..32d6fd4650 100644
--- a/src/pkg/runtime/stack.c
+++ b/src/pkg/runtime/stack.c
@@ -105,7 +105,7 @@ runtime·stackalloc(uint32 n)
m->stackinuse++;
return v;
}
- return runtime·mallocgc(n, 0, FlagNoProfiling|FlagNoGC|FlagNoZero|FlagNoInvokeGC);
+ return runtime·mallocgc(n, 0, FlagNoProfiling|FlagNoGC|FlagNoZero);
}
void