Closed Bug 1034611 Opened 10 years ago Closed 8 years ago

Make worker JS runtime creation fallible

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1247122

People

(Reporter: mccr8, Unassigned)

References

Details

Attachments

(1 file)

With GGC, workers apparently need a 16MB nursery, which is created when we create the JSRuntime.  That's huge, so we should make it fallible.  Fortunately, this only requires some minor code shuffling.

(We may separately want to consider reducing the nursery size for workers.)
That's crazy.  We absolutely cannot have a 16 MB nursery for workers.
This compiles and passes worker tests, though I'm getting one failure locally:

TEST-UNEXPECTED-FAIL | /tests/dom/workers/test/test_multi_sharedWorker_lifetimes.html | Still have data stored - got undefined, expected 0123456789abcdefghijklmnopqrstuvwxyz
Attachment #8450985 - Flags: feedback?(khuey)
That's bug 995688, no? Of course, bonus points if you can fix that while you're at it ;)
Hmm, yeah, looks like I commented back in April that it is permaorange for me. ;)
We know that we fail this allocation at least on tinderboxes so we'll need to do something more sophisticated than just bailing out of WorkerThreadPrimaryRunnable::Run I think.
I was hoping that returning an error would somehow magically turn into an exception in the parent thread.  Is that the sort of behavior you'd expect, Ben?
By the last sentence, I meant what is the desired behavior here? :)
Depends on: 1037510
No longer depends on: 1037510
Depends on: 1037510
Comment on attachment 8450985 [details] [diff] [review]
Make worker JS runtime allocation fallible.

So we established that this approach doesn't work, right?
Attachment #8450985 - Flags: feedback?(khuey)
I haven't checked yet, but I'm assuming it doesn't.  Sorry, I should have cleared the feedback flag after bent commented.
Assignee: continuation → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: