Closed Bug 1134600 Opened 5 years ago Closed 5 years ago

worker.terminate() keeps the worker in memory is a BroadcastChannel is opened.

Categories

(Core :: DOM: Workers, defect)

x86_64
Linux
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: vingtetun, Assigned: baku)

References

()

Details

Attachments

(1 file, 1 obsolete file)

If a page opens a worker, and share a BroadcastChannel, calling worker.terminate() stop the worker but keeps it in memory.

Open the related url.
Search for worker.js in about:memory
Isn't this Olli's cross thread cycle collection thing?
Flags: needinfo?(bugs)
Well, as of now, this is about the manual memory management of workers and broadcastchannel.
Flags: needinfo?(bugs) → needinfo?(amarchesini)
Attached patch bc.patch (obsolete) — Splinter Review
Flags: needinfo?(amarchesini)
Attachment #8566698 - Flags: review?(bugs)
Attachment #8566698 - Flags: review?(bugs) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c649b0112e6d
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.