DescriptionUpon clearing, release PersistentNode of cross-thread-persistent also.
Persistent<>s will only allocate an associated PersistentNode when the
heap reference is non-null. And, dually, free the PersistentNode
when the reference is cleared out and set to null.
Extend that freeing of a PersistentNode upon clearing to also apply to
CrossThreadPersistent<>s, making the behavior and lifetimes of
PersistentNodes consistent across both variants of persistent references.
R=haraken
BUG=483380
NOTRY=true
Committed: https://crrev.com/f8abd7cb1432b8df3e44e038079d1a2aedf993d9
Cr-Commit-Position: refs/heads/master@{#392287}
Patch Set 1 #Patch Set 2 : tweak #Patch Set 3 : extend unit test #Patch Set 4 : compile fix #Patch Set 5 : tidy #
Messages
Total messages: 18 (10 generated)
|