Closed
Bug 809533
Opened 13 years ago
Closed 13 years ago
make nsPresArena and display list arena use infallible allocation
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla19
| Tracking | Status | |
|---|---|---|
| firefox18 | --- | fixed |
People
(Reporter: dbaron, Assigned: dbaron)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
|
1.60 KB,
patch
|
roc
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
|
5.16 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
|
25.02 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
|
38.30 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
|
1.43 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
We should make nsPresArena and the display list arena be infallible allocators; they allocate memory in small pieces and many of the existing callers don't handle out-of-memory. So they should just abort on allocation failure.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #679249 -
Flags: review?(roc)
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #679250 -
Flags: review?(roc)
| Assignee | ||
Comment 3•13 years ago
|
||
Attachment #679251 -
Flags: review?(bzbarsky)
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #679252 -
Flags: review?(roc)
| Assignee | ||
Updated•13 years ago
|
Attachment #679252 -
Flags: review?(roc) → review?(bzbarsky)
Attachment #679249 -
Flags: review?(roc) → review+
Attachment #679250 -
Flags: review?(roc) → review+
Comment 5•13 years ago
|
||
| Assignee | ||
Comment 6•13 years ago
|
||
Landed patches 1 and 2 ahead of bug 572200:
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/6e5f31366aab
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/cf16f2f84efc
Whiteboard: [leave open]
| Assignee | ||
Comment 7•13 years ago
|
||
Attachment #679307 -
Flags: review?(roc)
Attachment #679307 -
Flags: review?(roc) → review+
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Comment on attachment 679251 [details] [diff] [review]
, patch 3: Stop handling allocation failures in the style system that no longer need to be handled.
r=me. Nice to see all that code go away!
Attachment #679251 -
Flags: review?(bzbarsky) → review+
Comment 10•13 years ago
|
||
Comment on attachment 679252 [details] [diff] [review]
, patch 4: Remove null-checks of NS_New*Frame callers in the frame constructor.
>+ // XXXldb Can we remove this now?
Yes.
r=me, but I bet there are lots of methods returning nsresult that can stop doing that now... Maybe file a followup to clean that up?
Attachment #679252 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 11•13 years ago
|
||
Landed patch 3 through patch 5:
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c6e38e325158
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/0be0f375cac8
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/d6c8276fe88e
Note that patch 5 addresses comment 5.
Whiteboard: [leave open]
| Assignee | ||
Comment 12•13 years ago
|
||
Comment on attachment 679249 [details] [diff] [review]
, patch 1: Make allocation in the frame arena and the display list arena infallible.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A
User impact if declined: Unable to land significant B2G performance improvement in bug 572200 without potentially risky logic changes.
Testing completed (on m-c, etc.): on mozilla-central
Risk to taking this patch (and alternatives if risky): The risk should be low; it's just applying the concept of infallible memory allocations which we already use extensively to one new class of small memory allocations.
String or UUID changes made by this patch: None.
Attachment #679249 -
Flags: approval-mozilla-aurora?
Comment 13•13 years ago
|
||
Comment on attachment 679249 [details] [diff] [review]
, patch 1: Make allocation in the frame arena and the display list arena infallible.
Approving on aurora as I understand it helps with b2g performance
Attachment #679249 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c6e38e325158
https://hg.mozilla.org/mozilla-central/rev/0be0f375cac8
https://hg.mozilla.org/mozilla-central/rev/d6c8276fe88e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
| Assignee | ||
Comment 15•13 years ago
|
||
status-firefox18:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•