]> Cypherpunks repositories - gostls13.git/commit
runtime: use readrange instead of read to check for races
authorKeith Randall <khr@golang.org>
Mon, 30 Dec 2013 20:03:56 +0000 (12:03 -0800)
committerKeith Randall <khr@golang.org>
Mon, 30 Dec 2013 20:03:56 +0000 (12:03 -0800)
commit1cc2ff8fc7b3729116f43bf68f9456b8f2d0efa9
treeeb4f02278a983aa497516dd64f8a21856b76b541
parent7ff57e2fa1999a5f4c97a1caf4fd467c2c0b2f3b
runtime: use readrange instead of read to check for races
on map keys and values which are now passed by reference.

R=dvyukov, khr
CC=golang-codereviews
https://golang.org/cl/43490044
src/pkg/runtime/hashmap.c
src/pkg/runtime/race/testdata/map_test.go