Closed maleadt closed 8 months ago
Otherwise the GC can call unsafe_free while we were performing a manual unsafe_free.
We could make the freed field of DataRef atomic, but currently operations on the parent object aren't supposed to be thread-safe. Only the contained RefCounted is.
freed
DataRef
RefCounted
Fixes https://github.com/JuliaGPU/GPUArrays.jl/issues/503
Otherwise the GC can call unsafe_free while we were performing a manual unsafe_free.
We could make the
freed
field ofDataRef
atomic, but currently operations on the parent object aren't supposed to be thread-safe. Only the containedRefCounted
is.Fixes https://github.com/JuliaGPU/GPUArrays.jl/issues/503