Re:On the impossibility of composing finalizers and FFI
by zozbot234 on Tuesday February 27, 2024 @05:41AM
(#39522488)
Yes, it's basically a kind of RAII. The FFI needs to add the data as a GC root whilst it's holding a reference to it, and release it when it's done. There are papers discussing this explicitly for the case of Ocaml, though I don't have a formal reference right now.
[ Parent
| on HN ]
There are no comments on this comment yet.