Closed Bug 1560948 Opened 2 years ago Closed 2 years ago

Workers repeatedly GC and CC during an ongoing low memory state

Categories

(Core :: DOM: Workers, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

For the main runtime we only do this once when we enter the low memory state:

https://searchfox.org/mozilla-central/rev/5e6eee137536e00ffeaff9eac8f4294aa015866b/dom/base/nsJSEnvironment.cpp#273

This check doesn't exist for workers and so low-memory-ongoing notifications will also trigger GC and CC.

Ignore ongoing memory pressure events on workers like we do on the main thread.

Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/53c79fdf6693
Don't garbage collect workers in an ongoing memory pressure state because it likely won't help much r=smaug

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.