Subtle change in Array behavior w.r.t finalizers after Memory #54985
Labels
domain:arrays
[a, r, r, a, y, s]
domain:docs
This change adds or pertains to documentation
GC
Garbage collector
This probably needs documentation. I just came across someone who wrote the following code (paraphrased):
Before the change to Memory the lifetime of the memory buffer was tight to Array so the finalizer there had the intended effect.
Now with Memory we are attaching the finalizer to the "wrong" object. I did not see this documented as a change, but it probably ought to be.
The text was updated successfully, but these errors were encountered: