Closed
Bug 557140
Opened 14 years ago
Closed 14 years ago
TM: too easy to trigger abort on OOM
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta1+ |
blocking1.9.2 | --- | - |
status1.9.2 | --- | unaffected |
People
(Reporter: igor, Assigned: igor)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
1.60 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
During a test development I accidentally wrote a script similar to: var array = []; for (var i = 0; ; ++i) array.push(i + 0.1); That resulted in an abort on OOM instead of expected out-of-memory report. That seems too easy to trigger.
Updated•14 years ago
|
blocking2.0: --- → beta1+
Assignee | ||
Comment 1•14 years ago
|
||
The patch adds GC quota check and OOM reporting to the operation callback. It works for the example from the comment 0 but it needs more testing.
Assignee: general → igor
Assignee | ||
Comment 2•14 years ago
|
||
Here is the patch to sync with the tip changes.
Attachment #437047 -
Attachment is obsolete: true
Attachment #438425 -
Flags: review?(jorendorff)
Assignee | ||
Updated•14 years ago
|
Summary: TM: too easy to trigger abort on OOM? → TM: too easy to trigger abort on OOM
Comment 3•14 years ago
|
||
Comment on attachment 438425 [details] [diff] [review] v2 Nice patch.
Attachment #438425 -
Flags: review?(jorendorff) → review+
Assignee | ||
Comment 4•14 years ago
|
||
https://hg.mozilla.org/tracemonkey/rev/2425ea22570c
Whiteboard: fixed-in-tracemonkey
Comment 6•14 years ago
|
||
We didn't take bug 508140 on mozilla-1.9.2, so it shouldn't be affecting the branch.
blocking1.9.2: ? → -
status1.9.2:
--- → unaffected
Comment 7•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/2425ea22570c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•