DescriptionPrevent <canvas> destructor from causing nested garbage collection
In the destruction of HTMLCanvasElement, we call
HTMLCanvasElement::existingDrawingContext(), whose behavior was changed
incorrectly in r162330 and was triggering the allocation of an ImageBuffer
during tear-down. This is not only wasteful, but it can trigger a
garbage collection because the creation of an ImageBuffer will increase
the amount of externallay allocated memory that is declared to V8.
Triggering a GC during the finalization of a garbage collected object
is bad.
BUG=378289
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174984
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|