-
Notifications
You must be signed in to change notification settings - Fork 0
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
Window
type is not memory safe
#2
Comments
Yes, I am aware of this and taking the risk in the same way UnsafeArrays does (don't look at it if you do not want to lie down for another five minutes). It is another instance of JuliaLang/julia#14955 But if you have a better suggestion to achieve the same behaviour while staying allocation-free, I'm open to suggestions. |
Fortunately this should be fixed in julia 1.5 (JuliaLang/julia#34126). |
Thank you, that looks promising indeed! |
Is it closed because a warning was added or because it was reimplemented safely? |
Yes it was implemented safely as soon as I realized the workaround wasn't even necessary in julia 1.4. Since julia 1.5 the situation only got better. |
StaticKernels.jl/src/types.jl
Line 42 in d08b602
This is not a valid use of
Ptr
--- it will drop references toa
and cause crashes. Please do not do this. I had to lie down for five minutes after seeing this code.The text was updated successfully, but these errors were encountered: