-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all useless calls to GC.@preserve
#15
Comments
These will be the remaining calls to
|
The former seems like it should call |
This codebase is now 100% preservative free 😬 Thanks for bringing it up 👍 |
Aright, but now you need to add correct ones back also: any place you use the cell field you need to surround with |
I was afraid you'd say that... So, like this for example? function bltfrm(frmcls)
idset = SpiceIntCell(256)
GC.@preserve idset.data begin
ccall((:bltfrm_c, libcspice), Cvoid, (SpiceInt, Ref{Cell{SpiceInt}}), frmcls, idset.cell)
end
handleerror()
idset
end For my education, |
That is correct |
Currently the
GC.@preserve
calls are on a Ptr{*} value, which isn't actually a GC-tracked mutable-type, so are just ignored. I'm not sure the actual intent of them? It looks like they can be safely deleted.The text was updated successfully, but these errors were encountered: