]> Cypherpunks repositories - gostls13.git/commit
runtime: flag static variables as no-pointers
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Mon, 27 May 2013 06:11:59 +0000 (08:11 +0200)
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Mon, 27 May 2013 06:11:59 +0000 (08:11 +0200)
commite017e0cb24f9c5ea4c0e2b7479e4b411e4882dcf
tree73ec7950d22b460dbeeb5f3df6ebe1fa98fe8104
parent20c524c5e29282d3c91e8155c496865dee2c3c73
runtime: flag static variables as no-pointers

Variables in data sections of 32-bit executables interfere with
garbage collector's ability to free objects and/or unnecessarily
slow down the garbage collector.

This changeset moves some static variables to .noptr sections.
'files' in symtab.c is now allocated dynamically.

R=golang-dev, dvyukov, minux.ma
CC=golang-dev
https://golang.org/cl/9786044
src/pkg/runtime/hashmap.c
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_freebsd.c
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_netbsd.c
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_plan9.c
src/pkg/runtime/os_windows.c
src/pkg/runtime/symtab.c