]> Cypherpunks repositories - gostls13.git/commit
runtime: optionally check all allocations in hashmap.c
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Mon, 25 Mar 2013 20:35:46 +0000 (21:35 +0100)
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Mon, 25 Mar 2013 20:35:46 +0000 (21:35 +0100)
commitbf1f46180ee348d2d59bebfeda0314450fbcd893
tree639e983464a918d289ed041f25f093cb14e486f2
parentfc4c5b14ef6906f981bf199a78c08942388fc03c
runtime: optionally check all allocations in hashmap.c

Adds the new debugging constant 'checkgc'. If its value is non-zero
all calls to mallocgc() from hashmap.c will start a garbage collection.

Fixes #5074.

R=golang-dev, khr
CC=golang-dev, rsc
https://golang.org/cl/7663051
src/pkg/runtime/hashmap.c