[whatwg] Low Memory Event

Boris Zbarsky bzbarsky at MIT.EDU
Sun Jan 2 02:59:14 PST 2011


On 1/1/11 6:53 PM, Charles Pritchard wrote:
> ArrayBuffer and Canvas use contiguous memory segments. You don't need a
> complex GC pass to let those ones go.

Yes, you do.  You can't let go of the canvas buffer without letting go 
of the canvas rendering contexts and canvas elements referencing it. 
And those used to be referenced from JS, so the only way they can go 
away is via a GC.

Similar for ArrayBuffer: the memory segment is owned by various 
garbage-collected objects, and can't go away until they do.

-Boris



More information about the whatwg mailing list