On Sun, May 14, 2017 at 8:12 PM, andrey mirtchovski <[email protected]> wrote: > >> the pointer with the finalizer set on it is no longer referenced and the >> finalizer is eligible to be run when the next GC occurs. > > should this constitute an error that requires a panic, or is this not > panic-ing due to unsafe/cgo being in use?
There isn't anything that can detect the panic. On the Go side everything is fine: an object that is no longer referenced had a finalizer, and the finalizer was run. On the C side there is a dangling pointer, but there is no way to detect that in C. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
