add pointer writebarrier note

This commit is contained in:
Damian Gryski 2018-03-07 17:16:15 -08:00
parent 5ce6c4141c
commit 8d41f4151b

View File

@ -769,6 +769,7 @@ allocate it. But you also pay every time the garbage collection runs.
* pointer-free map keys * pointer-free map keys
* GOGC * GOGC
* buffer reuse (sync.Pool vs or custom via go-slab, etc) * buffer reuse (sync.Pool vs or custom via go-slab, etc)
* slicing vs. offset: pointer writes while GC is running need writebarrier: https://github.com/golang/go/commit/b85433975aedc2be2971093b6bbb0a7dc264c8fd
## Runtime and compiler ## Runtime and compiler