]> Cypherpunks repositories - gostls13.git/commit
runtime: precise garbage collection of channels
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Mon, 25 Feb 2013 20:58:23 +0000 (15:58 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 25 Feb 2013 20:58:23 +0000 (15:58 -0500)
commita656f82071c1631ed0aae5c403cf948fc06b52ce
tree02659c81c4c519260fb6a22b65be44429d36f3e5
parent707ab1347f114934d65b713e22fdd62b4a83ca36
runtime: precise garbage collection of channels

This changeset adds a mostly-precise garbage collection of channels.
The garbage collection support code in the linker isn't recognizing
channel types yet.

Fixes issue http://stackoverflow.com/questions/14712586/memory-consumption-skyrocket

R=dvyukov, rsc, bradfitz
CC=dave, golang-dev, minux.ma, remyoudompheng
https://golang.org/cl/7307086
src/pkg/runtime/chan.c
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.c
src/pkg/runtime/runtime.h