JuliaInterop / libcxxwrap-julia

C++ library for backing CxxWrap.jl
Other
84 stars 43 forks source link

GC rooting with new GC extensions API #19

Closed c42f closed 4 years ago

c42f commented 6 years ago

I was just looking at how GC rooting of non-stack objects works here and I saw you've had to resort to a global array at the moment. Luckily the new GC extensions API seems to be just what you need. It's pretty new, is there a plan to integrate it here yet?

Refs: https://github.com/JuliaLang/julia/pull/28368 https://github.com/JuliaLang/Juleps/blob/master/GcExtensions.md

barche commented 6 years ago

Aha, I didn't know about that, looks cool, thanks! I suppose this will be part of Julia 1.1?

c42f commented 6 years ago

Yes, it's merged so it'll be part 1.1 which is currently due to enter feature freeze in the middle of the month.

barche commented 4 years ago

This is now implemented in the master version of CxxWrap.

c42f commented 4 years ago

Oh, very nice!