Open Bug 1894005 Opened 1 year ago Updated 1 year ago

Investigate adding a per-script alloc site

Categories

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

task

Tracking

()

ASSIGNED

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

For objects we've added allocation sites for two specific allocation paths, but there are many places we don't have this. Rather than add alloc sites in every possible location it may be worthwhile adding a per-script allocation site. This would be a more coarse grained fallback but one that is much simpler to implement. (Currently we disable nursery string allocations on a per-zone basis which is like and even more coarse grained setup.)

Summary: Intestigate adding a per-script alloc site → Investigate adding a per-script alloc site
Severity: S3 → N/A
Priority: -- → P2

The problem here is that we copy the keys/values in entryNeedsSweep. I tried
several strategies to avoid this but in the end the simplest thing to do was
add a needsSweep method to the GC policy templates that calls
IsAboutToBeFinalized. I've implemented this only where necessary (and WeakCache
is only used internally nowadays).

Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED

Comment on attachment 9400473 [details]
Bug 1894005 - Allow UniquePtrs to be used in WeakCache hash maps r?sfink

Revision D209687 was moved to bug 1895462. Setting attachment 9400473 [details] to obsolete.

Attachment #9400473 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: