]> Cypherpunks repositories - gostls13.git/commit
runtime: use reflect·call() to enter the function gc()
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Tue, 27 Nov 2012 18:04:59 +0000 (13:04 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 27 Nov 2012 18:04:59 +0000 (13:04 -0500)
commit51b8edcb37e7f20859b69623f69e9032e9601add
treee5c7bf6b5c9d59f8d7cfae5e817c421615bcd4c0
parent58ce93b6bfe1e24539d621ef326876f1f6758cf8
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
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h