]> Cypherpunks repositories - gostls13.git/commit
runtime: local allocation in mprof.goc
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Wed, 30 Jan 2013 17:01:31 +0000 (09:01 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 17:01:31 +0000 (09:01 -0800)
commit4da6b36fbf2af314f62bc51576c7785a5631c016
treeca22da49f1992d1e50882d7fcb92b94675436084
parent3bdeaf2a64a9731fc664b6d0fc36a70e7a7e0a05
runtime: local allocation in mprof.goc

Binary data in mprof.goc may prevent the garbage collector from freeing
memory blocks. This patch replaces all calls to runtime·mallocgc() with
calls to an allocator private to mprof.goc, thus making the private
memory invisible to the garbage collector. The addrhash variable is
moved outside of the .bss section.

R=golang-dev, dvyukov, rsc, minux.ma
CC=dave, golang-dev, remyoudompheng
https://golang.org/cl/7135063
src/pkg/runtime/mprof.goc
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h