W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] Low Memory Event

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 02 Jan 2011 04:59:14 -0600
Message-ID: <4D205A82.7030002@mit.edu>
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.

Received on Sunday, 2 January 2011 02:59:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC