DescriptionApply WTF::ParamStorageTraits<> to CrossThreadTaskN.
Before this CL, a pointer to a GarbageCollected object is stored by RawPtr<T> or
T* in CrossThreadTaskN. If a GC happened before the task is performed,
the object can be swept.
Applying ParamStorageTraits makes it CrossThreadPersistent<T>, and
we can safely use createCrossThreadTask() for GarbageCollected objects.
BUG=378192
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190638
Patch Set 1 : #
Messages
Total messages: 10 (5 generated)
|