Closed Bug 1108257 Opened 10 years ago Closed 7 years ago

Investigate sweeping more JSObjects incrementally

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1352430

People

(Reporter: jonco, Unassigned)

Details

(Keywords: perf)

Currently we sweep any JSObject that cannot be swept on the background thread in the first slice of sweeping for a zone group, which has the potential to produce large pause times and causes us to overrun our slice budget.

One reason we do this is because DOM object finalizers must all be run in this slice so they can clear their wrapper cache entries and prevent the program from observing dead objects in cache before the entry is cleared.

This particular problem could be solved by putting a read barrier on the wrapper cache.  This would allow us to sweep those objects incrementally on the foreground thread.

We should investigate this possibility.
Keywords: perf
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.