When replacing the internal buffer of a SharedBuffer with mmap'ed file-backed pages, we may still have an ImageSource (inside of CachedImage::m_image) retaining the old heap-allocated resource buffer.
This means that we pay double the memory cost for encoded data in downloaded resources that get cached for the first time.
Created attachment 269495 [details]
Comment on attachment 269495 [details]
Clearing flags on attachment: 269495
Committed r195430: <http://trac.webkit.org/changeset/195430>
All reviewed patches have been landed. Closing bug.