Re: [julia-users] GC rooting for embedding: what is safe and unsafe?

2016-10-17 Thread Gunnar Farnebäck
Thanks. That makes things clearer. Den fredag 14 oktober 2016 kl. 14:16:54 UTC+2 skrev Yichao Yu: > > > > On Fri, Oct 14, 2016 at 7:03 AM, Bart Janssens > wrote: > >> Hi, >> >> Replies below, to the best of my understanding of the Julia C interface: >> >> On Fri, Oct

Re: [julia-users] GC rooting for embedding: what is safe and unsafe?

2016-10-14 Thread Yichao Yu
On Fri, Oct 14, 2016 at 7:03 AM, Bart Janssens wrote: > Hi, > > Replies below, to the best of my understanding of the Julia C interface: > > On Fri, Oct 14, 2016 at 11:47 AM Gunnar Farnebäck > wrote: > >> Reading through the threads and issues on gc

Re: [julia-users] GC rooting for embedding: what is safe and unsafe?

2016-10-14 Thread Bart Janssens
Hi, Replies below, to the best of my understanding of the Julia C interface: On Fri, Oct 14, 2016 at 11:47 AM Gunnar Farnebäck wrote: > Reading through the threads and issues on gc rooting for embedded code, as > well as the code comments above the JL_GC_PUSH* macros in

[julia-users] GC rooting for embedding: what is safe and unsafe?

2016-10-14 Thread Gunnar Farnebäck
Reading through the threads and issues on gc rooting for embedded code, as well as the code comments above the JL_GC_PUSH* macros in julia.h, I'm still uncertain about how defensive it's necessary to be and best practices. I'll structure this into a couple of cases with questions. 1. One of