]> Cypherpunks repositories - gostls13.git/commit
runtime: document concurrency of mheap.spans
authorAustin Clements <austin@google.com>
Wed, 9 Aug 2017 15:19:24 +0000 (11:19 -0400)
committerAustin Clements <austin@google.com>
Wed, 9 Aug 2017 16:06:23 +0000 (16:06 +0000)
commit53f2d534504f2804ae7ccea45b5a8d6f1e693147
tree6da0e44422960062f170d1dbefd4a35c1c9cbab1
parent6a7c4d69cb72f857b21c36ef077de0b97d9dbd50
runtime: document concurrency of mheap.spans

We use lock-free reads from mheap.spans, but the safety of these is
somewhat subtle. Document this.

Change-Id: I928c893232176135308e38bed788d5f84ff11533
Reviewed-on: https://go-review.googlesource.com/54310
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mheap.go