Closed
Bug 1185582
Opened 10 years ago
Closed 10 years ago
Back out the hack to retry image decoding when memory is low, which is now useless
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file)
7.43 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
In bug 1171356 we landed a hack to retry decoding an image up to 10 times if memory was currently too low to allocate the image's first frame. There are two reasons why it no longer makes sense to keep this hack:
- This was motivated by the fact that we locked images during decoding, which meant that until the decoder got to the front of the decode queue and actually started running, the image's first frame would pointlessly consume image memory that could not be freed. This was fixed in bug 1117607 and bug 1176124; we no longer allocate an image's first frame until the decoder actually starts running.
- *Because* we no longer allocate an image's first frame until the decoder starts running, checking for decoder errors in RasterImage::CreateDecoder() to see if allocating the first frame of the image failed is now useless, because we don't allocate the first frame of the image at that point anymore.
Let's remove the code that landed in bug 1171356.
Assignee | ||
Comment 1•10 years ago
|
||
Here's the patch. One less hack in the codebase.
Attachment #8636094 -
Flags: review?(tnikkel)
Updated•10 years ago
|
Attachment #8636094 -
Flags: review?(tnikkel) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the quick review!
![]() |
||
Comment 4•10 years ago
|
||
This landed yesterday - https://hg.mozilla.org/mozilla-central/rev/df5f40088d22
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•