]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race detector when map keys/values are passed by pointer.
authorKeith Randall <khr@golang.org>
Tue, 3 Dec 2013 02:03:25 +0000 (18:03 -0800)
committerKeith Randall <khr@golang.org>
Tue, 3 Dec 2013 02:03:25 +0000 (18:03 -0800)
commitc0f229457731daa170fea3c8eb2c4f4c363266d3
tree78e3de47ce7f59fdc6e2a1d2ff24e878e9c0915b
parent742f755a29493b111d54a0d39d80083994dcaf1a
runtime: fix race detector when map keys/values are passed by pointer.

Now that the map implementation is reading the keys and values from
arbitrary memory (instead of from stack slots), it needs to tell the
race detector when it does so.

Fixes #6875.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/36360043
src/pkg/runtime/hashmap.c