[vm] Recognize WeakReference
in the VM
#48162
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
https://dart-review.googlesource.com/c/sdk/+/228206 implements
WeakReference
in terms ofWeakProperty
.The advantage of this approach is that its a small CL and we don't have to modify the GC code deal with both WeakProperty and WeakReference.
The downside is that this causes one extra object per WeakReference (4 words) and one extra load per load of a weak reference.
We should consider implementing WeakReference in the VM.
Things to note for a VM implementation:
For more details see internal design doc.
Context: #47777
The text was updated successfully, but these errors were encountered: