OK I might be convinced… I just have two questions:
- When I construct an
RTPSA, the C constructor will give a pointerPtr{RTPSA}. If I understand correctly, with this pointer I thenunsafe_loadinto myRTPSAstruct. Now when the finalizer is eventually called, I pass itpointer_from_objreffor thatRTPSA. This pointer is different from the pointer originally returned by the C code during construction. Do they both point to the exact same place in memory, and is the memory properly freed on the C side when receiving this different pointer? - I cannot compile the C to a shared library with these undefined symbols
jl_freeandjl_malloc. So I’m not exactly sure what you mean by it will “just work”?