diff options
| author | Austin Clements <austin@google.com> | 2015-06-19 12:29:42 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-06-22 18:37:20 +0000 |
| commit | 2a331ca8bbadfa20fc1790b04ff90eec23b156e8 (patch) | |
| tree | b8f7c2a8f73bc055ee8fecd6863ae17271f770b6 /src/runtime/malloc.go | |
| parent | 874a605af0764a8f340c3de65406963f514e21bc (diff) | |
| download | go-2a331ca8bbadfa20fc1790b04ff90eec23b156e8.tar.xz | |
runtime: document relaxed access to arena_used
The unsynchronized accesses to mheap_.arena_used in the concurrent
part of the garbage collector look like a problem waiting to happen.
In fact, they are safe, but the reason is somewhat subtle and
undocumented. This commit documents this reasoning.
Related to issue #9984.
Change-Id: Icdbf2329c1aa11dbe2396a71eb5fc2a85bd4afd5
Reviewed-on: https://go-review.googlesource.com/11254
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions
