Closed Bug 1669468 Opened 4 years ago Closed 4 years ago

Refactor heap size triggers a little

Categories

(Core :: JavaScript: GC, task, P3)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(3 files)

While looking into improving behaviour when the GC heap is full I refactored some of the heap size triggers.

This simplifies the threshold checks and the decision to make a collection
non-incremental ultimately happens in GCRuntime::budgetIncrementalGC anyway. We
still have telemetry for incremental/non-incremental collections and
non-incremental reason.

Also removed the call in js::intl::AddICUCellMemory since AddCellMemory calls this already.

Depends on D92592

Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/181a90c3250e
Remove separate GC reasons incremental/non-incremental trigger kinds and reasons. r=sfink
https://hg.mozilla.org/integration/autoland/rev/4610635ff004
Rename methods that check heap sizes to be more readable r=sfink
https://hg.mozilla.org/integration/autoland/rev/2c76a244a4d9
Factor out code to update zone heap size thresholds into separate methods r=sfink
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: