DescriptionCompletely clear weak persistent references.
If weak processing determines that a WeakPersistent<T> is now pointing
to an otherwise unreferenced object, clear out and deallocate its
underlying PersistentNode.
We previously would only clear the persistent reference, but keep the
PersistentNode. This would lead to imprecise counts of live persistents,
potentially triggering false asserts of leaking persistents during thread
termination GCs.
R=
BUG=
Committed: https://crrev.com/0508bde56b8a90655708fbd89418650f828ee546
Cr-Commit-Position: refs/heads/master@{#401880}
Patch Set 1 #Patch Set 2 : tidy #Patch Set 3 : fix registerWeakMembers() invocation #Patch Set 4 : undo strongification.. #Messages
Total messages: 8 (3 generated)
|