Hi,

It feels to me like there have been quite a few graphics-related memory leaks
recently.

Here are a couple that have been fixed:
https://bugzilla.mozilla.org/show_bug.cgi?id=937878 (layer retention)
https://bugzilla.mozilla.org/show_bug.cgi?id=938612 (canvas leak)

Here is one that's still open
https://bugzilla.mozilla.org/show_bug.cgi?id=928692 (RasterImage leak?)

And the comment at https://bugzilla.mozilla.org/show_bug.cgi?id=915940#c13 is
worrying:
"... once allocated the memory is only referenced via a SurfaceDescriptor,
which is a generated class (from IPDL). These are then passed around from
thread to thread and not really kept tracked of - the lifetime management for
them and their resources is an ongoing nightmare and is why we were leaking
this memory image memory until Friday."

Is my perception wrong -- is graphics code especially leak-prone?  If not,
could we be doing more and/or different things to make such leaks less likely?
https://bugzilla.mozilla.org/show_bug.cgi?id=935778 (hook RefCounted/RefPtr
into the leak checking) is one idea.  Any others?

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to