C struct garbage collection not run frequently enough

OK I might be convinced… I just have two questions:

  1. When I construct an RTPSA, the C constructor will give a pointer Ptr{RTPSA}. If I understand correctly, with this pointer I then unsafe_load into my RTPSA struct. Now when the finalizer is eventually called, I pass it pointer_from_objref for that RTPSA. 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?
  2. I cannot compile the C to a shared library with these undefined symbols jl_free and jl_malloc. So I’m not exactly sure what you mean by it will “just work”?