aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2012-11-27 13:04:59 -0500
committerRuss Cox <rsc@golang.org>2012-11-27 13:04:59 -0500
commit51b8edcb37e7f20859b69623f69e9032e9601add (patch)
treee5c7bf6b5c9d59f8d7cfae5e817c421615bcd4c0 /src/pkg/runtime/runtime.h
parent58ce93b6bfe1e24539d621ef326876f1f6758cf8 (diff)
downloadgo-51b8edcb37e7f20859b69623f69e9032e9601add.tar.xz
runtime: use reflect·call() to enter the function gc()
Garbage collection code (to be merged later) is calling functions which have many local variables. This increases the probability that the stack capacity won't be big enough to hold the local variables. So, start gc() on a bigger stack to eliminate a potentially large number of calls to runtime·morestack(). R=rsc, remyoudompheng, dsymonds, minux.ma, iant, iant CC=golang-dev https://golang.org/cl/6846044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index c6b30ac73c..e6a78ba570 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -273,6 +273,7 @@ struct M
GCStats gcstats;
bool racecall;
void* racepc;
+ uint32 moreframesize_minalloc;
uintptr settype_buf[1024];
uintptr settype_bufsize;