Closed
Bug 1066745
Opened 12 years ago
Closed 12 years ago
Do best-effort OOM reporting from the JSRuntime
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
INVALID
People
(Reporter: terrence, Assigned: terrence)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
11.12 KB,
patch
|
Details | Diff | Splinter Review |
Currently, we simply ignore OOM and allocation overflow that happens on a zone or runtime. In the case of OOM, we can easily call the OOM error handler even if we only have a runtime. In the specific case of gecko, JSRuntime::activeContext will be set and we can almost always do normal reporting.
https://tbpl.mozilla.org/?tree=Try&rev=bdacf752c0dd
Attachment #8488749 -
Flags: review?(sphink)
Comment 1•12 years ago
|
||
It looks like activeContext is #ifdef DEBUG. Is it reliable enough to use in production? The weird case I'm thinking about is if we end up setting a pending exception on some unrelated context and then, because the 'return false' doesn't propagate all the way, leave it pending.
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 8488749 [details] [diff] [review]
report_oom_from_runtimes-v0.diff
(In reply to Luke Wagner [:luke] from comment #1)
> It looks like activeContext is #ifdef DEBUG. Is it reliable enough to use
> in production? The weird case I'm thinking about is if we end up setting a
> pending exception on some unrelated context and then, because the 'return
> false' doesn't propagate all the way, leave it pending.
According to the comment above it, we're using it for same-compartment checks. I thought those were (1) enabled in nightly and (2) pretty much 100% passing now. I'll take a closer look.
Attachment #8488749 -
Flags: review?(sphink)
| Assignee | ||
Comment 3•12 years ago
|
||
Yeah, this is DEBUG only -- looks like I'm going to have to block this on moving the pending exception to the runtime. :-/
| Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•