diff options
| author | Jan Ziak <0xe2.0x9a.0x9b@gmail.com> | 2013-02-25 15:58:23 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-02-25 15:58:23 -0500 |
| commit | a656f82071c1631ed0aae5c403cf948fc06b52ce (patch) | |
| tree | 02659c81c4c519260fb6a22b65be44429d36f3e5 /src/pkg/runtime/malloc.h | |
| parent | 707ab1347f114934d65b713e22fdd62b4a83ca36 (diff) | |
| download | go-a656f82071c1631ed0aae5c403cf948fc06b52ce.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index c795a6fd5b..38122bf8a5 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -482,6 +482,7 @@ enum TypeInfo_SingleObject = 0, TypeInfo_Array = 1, TypeInfo_Map = 2, + TypeInfo_Chan = 3, // Enables type information at the end of blocks allocated from heap DebugTypeAtBlockEnd = 0, |
