Closed Bug 1900324 Opened 1 year ago Closed 11 months ago

Don't put alloc sites into the active list until they reach the attention threshold

Categories

(Core :: JavaScript: GC, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We maintain a list of active alloc sites which are processed at the end of a nursery collection. Any sites where the number of nursery allocations reaches the attention threshold are considered for pretenuring.

Currently we put alloc sites into this list the first time an allocation is made using that site since the last nursery collection. Instead we can delay this until the number of allocations reaches the attention threshold. This reduces the size of the list and hence the amount of processing needed at the next nursery collection.

This changes the meaning of the site's allocation and tenured count fields, since these no longer related to the time since the last collection but to the time since the site was last processed. The only effect this has on pretenuring is to make it more likely to pretenure some sites with very low allocation frequency which would have been ignored before.

Severity: -- → N/A
Priority: -- → P1
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e49d2ac030ba Don't put alloc sites into the active list until they reach the attention threshold r=jandem
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: