Apply 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 Review URL: https://codereview.chromium.org/934963003 git-svn-id: svn://svn.chromium.org/blink/trunk@190638 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
This diff is collapsed.
Please register or sign in to comment