Closed
Bug 948023
Opened 12 years ago
Closed 12 years ago
Refactor ReconstructStackDepth to allow handling of OOM condition
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: decoder, Assigned: decoder)
References
Details
(Keywords: assertion, sec-want, Whiteboard: [qa-][adv-main28-])
Attachments
(1 file)
|
4.19 KB,
patch
|
jandem
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Right now, [@ ReconstructStackDepth] returns false both when an OOM occurs and when the *pc is unreachable. The attached patch refactors the function to return false on OOM and pass the reachable/unreachable part back in a second variable. With this patch, some OOM assertions are fixed that LangFuzz keeps hitting.
Attachment #8344767 -
Flags: review?(jdemooij)
Comment 1•12 years ago
|
||
Comment on attachment 8344767 [details] [diff] [review]
js-ReconstructStackDepth-oom.patch
Review of attachment 8344767 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks.
Attachment #8344767 -
Flags: review?(jdemooij) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Comment 4•12 years ago
|
||
Christian: should this OOM fix be uplifted to Aurora 28?
Flags: needinfo?(choller)
| Assignee | ||
Comment 5•12 years ago
|
||
This isn't a huge refactoring, but it's still more than just adding a null check, so I suggest we just let it ride the trains. No immediate need for this on the branches.
Flags: needinfo?(choller)
| Assignee | ||
Comment 6•12 years ago
|
||
gkw just pointed out that Aurora 28 is going to be used as a foundation for the next B2G version. Since OOM crashes are more of an issue to them than regularly, it might be worth uplifting. I'll fill out the form.
| Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 8344767 [details] [diff] [review]
js-ReconstructStackDepth-oom.patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A
User impact if declined: Crashes in OOM conditions
Testing completed (on m-c, etc.): A few days on mozilla-central
Risk to taking this patch (and alternatives if risky): Very low, this is just a simple refactoring and adding some return value checks that were previously missing/wrong.
String or IDL/UUID changes made by this patch: None
Attachment #8344767 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Attachment #8344767 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 8•12 years ago
|
||
status-firefox28:
--- → fixed
Updated•12 years ago
|
status-firefox29:
--- → fixed
Updated•12 years ago
|
Whiteboard: [qa-]
Updated•12 years ago
|
Whiteboard: [qa-] → [qa-][adv-main28-]
You need to log in
before you can comment on or make changes to this bug.
Description
•