DescriptionInvalidate cross-thread persistents on heap termination.
When a thread is detached from Oilpan and its ThreadState is
finalized, arrange for any CrossThreadPersistent<>s pointing
into one of its heaps to be cleared out. Not doing so risks
dangling pointers to be followed upon GC or by anyone else
still keeping these CrossThreadPersistent<>s alive.
The only operation that other threads are allowed over
CrossThreadPersistent<> (CTP) once the ThreadState has been
destructed, is to destruct the CTP.
R=haraken
BUG=515432
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199891
Patch Set 1 #Patch Set 2 : clarify comments + style tweaks #
Total comments: 7
Patch Set 3 : simplify the invalidation as ref-clearing #
Messages
Total messages: 12 (5 generated)
|