Open Bug 1330432 Opened 8 years ago Updated 2 years ago

Add prefs to control worker GC timer intervals

Categories

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

enhancement

Tracking

()

People

(Reporter: bkelly, Unassigned)

Details

Attachments

(1 file)

We currently hard code GC intervals to:

// JS_MaybeGC will run once every second during normal execution.
#define PERIODIC_GC_TIMER_DELAY_SEC 1

// A shrinking GC will run five seconds after the last event is processed.
#define IDLE_GC_TIMER_DELAY_SEC 5

A one second interval may not be appropriate on slow mobile devices.  See bug 1319278.

I'll add some prefs so we can tune these values.
Expose worker GC timer values as prefs.  Also, lets slow down how fast we try to GC in mobile as the individual GCs may take longer on slow processors.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=777499dcbf85dc1a9377866ed1ae10f395e66579
Attachment #8826002 - Flags: review?(amarchesini)
Attachment #8826002 - Flags: review?(amarchesini) → review+
Strangely, this doesn't seem to be working.
We should consider doing this, but I never had time to figure out what was wrong with these patches.
Assignee: bkelly → nobody
No longer blocks: 1319278
Status: ASSIGNED → NEW
Comment on attachment 8826002 [details] [diff] [review]
Expose worker GC timer values as prefs and tune them for fennec. r=baku

This patch doesn't seem to work in my testing.
Attachment #8826002 - Flags: review+
Priority: -- → P3
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: