You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UnsafeArrays currently only support types T for isbitstype(T) == true.
I suppose the reason for this is that non-bits types are at risk of being GC'ed if their only reference is within an UnsafeArray.
However, this seems overly restrictive as isbitstype returns false for a lot of types (Unions of bitstypes, Ptrs, ..) that are allocated inline and thus not are in risk of being GC'ed. Instead, Base.allocatedinline seems like a better alternative.
Using Base.allocatedinline sound interesting, but I think it's an internal Julia function and not part of the public API. Do you know if it's used by other packages?
UnsafeArrays currently only support types
T
forisbitstype(T) == true
.I suppose the reason for this is that non-bits types are at risk of being GC'ed if their only reference is within an UnsafeArray.
However, this seems overly restrictive as
isbitstype
returns false for a lot of types (Unions of bitstypes, Ptrs, ..) that are allocated inline and thus not are in risk of being GC'ed. Instead,Base.allocatedinline
seems like a better alternative.E.g.
The text was updated successfully, but these errors were encountered: