]> Cypherpunks repositories - gostls13.git/commit
runtime: allocate heap metadata at run time
authorRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 19:27:03 +0000 (14:27 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 19:27:03 +0000 (14:27 -0500)
commit8a6ff3ab3469ea6b448d682ac7ebc3b818208634
treebe0d4d94d611d072d7e2c615a6096b820e532dbf
parentf87b7f67b232db252a527dbc000533a27ccb8cd2
runtime: allocate heap metadata at run time

Before, the mheap structure was in the bss,
but it's quite large (today, 256 MB, much of
which is never actually paged in), and it makes
Go binaries run afoul of exec-time bss size
limits on some BSD systems.

Fixes #4447.

R=golang-dev, dave, minux.ma, remyoudompheng, iant
CC=golang-dev
https://golang.org/cl/7307122
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mcentral.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/race.c
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_x86.c