[Webkit-unassigned] [Bug 61006] REGRESSION(r39725?) : All CachedResources are leaked

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 17 17:25:44 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61006





--- Comment #1 from James Robinson <jamesr at chromium.org>  2011-05-17 17:25:44 PST ---
Created an attachment (id=93850)
 --> (https://bugs.webkit.org/attachment.cgi?id=93850&action=review)
test cases that loads images via new Image

This test case loads 50 512x512 images via new Image().src = "data:...".  This causes a memory growth of ~400MB.

Since the image is 512x512x4 bytes/pixel, the data URL size is 512*512*4 * 4/3 (base64) * 2 (utf-16 encoding) = 2666kb/image.  Given 50 loads this should be a memory use of 133MB, which means that we are leaking 3 copies of the URL per load.  I imagine that we're doing deep string copies in a few places that perhaps we don't mean to, in addition to leaking it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list