On Fri, May 14, 2021 at 7:28 AM 'Michael Pratt' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
>
> Go has a non-moving GC [1], so that is not an issue. That said, 
> unsafe.Pointer states "the referenced allocated object, if any, is retained 
> and not moved until the call completes". It doesn't say that this recursively 
> applies to objects referenced by the converted object, though I perhaps it 
> should.

To date we have explicitly decided that it shouldn't.  See the
discussion at 
https://go.googlesource.com/proposal/+/refs/heads/master/design/12416-cgo-pointers.md.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXw4y_AX75Dk1RkHwL1ouMGoRPPoCszt57XN3r0Cy_NtA%40mail.gmail.com.

Reply via email to