]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race on hashmap flags field
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 8 Apr 2013 01:19:16 +0000 (18:19 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 8 Apr 2013 01:19:16 +0000 (18:19 -0700)
commitb6bfc92df363606f982517f8c9bb840ebaef9053
tree390cd3e5daa44f882879790bf8564e5ca241d30f
parentf4de042e2c22dcd64c667e3196d27a8b551410a4
runtime: fix race on hashmap flags field
Use atomic operations on flags field to make sure we aren't
losing a flag update during parallel map operations.

R=golang-dev, dave, r
CC=golang-dev
https://golang.org/cl/8377046
src/pkg/runtime/hashmap.c
src/pkg/runtime/map_test.go