DescriptionNumber of small improvements to CleanupReference
- sRef is now only accessed on main thread, so CleanupReference should
now be threadsafe
- synchronously flushes sQueue when references added or removed on main
thread, to avoid falling behind when heap is churning rapidly (i.e.
finalizers never getting to run scenario).
- ensure the referene gets removed from sRefs after a GC as otherwise
it might have remained on there indefinitely.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174931
Patch Set 1 #
Total comments: 4
Patch Set 2 : dtrainor comments #Messages
Total messages: 6 (0 generated)
|