Add CHECK for Layout::Destroy() called inside a finalizer
LayoutObject::Destroy() should not be called inside a finalizer. This becomes dangerous when we migrate LayoutObje ct to Oilpan as finalizers are not allowed to access other on-heap objects. This CL adds AllowDestroyingLayoutObjectInFinalizerScope to mark certain SVGImage() as exempt from this CHECK. This is OK as SVGImage is retaining the LayoutObject via a Persistent and so it is guaranteed to survive the current GC cycle. Bug: 1030176 Change-Id: Ibdd0a29e7630747ea118d92d442776cf1bac8537 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352294Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Keishi Hattori <keishi@chromium.org> Cr-Commit-Position: refs/heads/master@{#798217}
Showing
Please register or sign in to comment