On Mon, Sep 14, 2015 at 2:33 PM, thwd <
sedevel...@gmail.com> wrote:
>
> I'm interested.
>
> * Where is this bit pattern located in relation to the pointer itself and
> the referenced memory area?
See runtime/mbitmap.go.
> * If uintptr is invisible to the GC, am I correct in assuming that it is
> used for manual memory management where needed?
I don't think I would put it that way. The GC also ignores pointers
that are not into GC memory, and most manual memory management is done
with that memory, so it uses pointers too. The GC and memory
allocation code does convert to uintptr in order to do pointer
arithmetic.
> * Does the write barrier also apply to unsafe.Pointers?
Yes.
Ian