Investigate how to trigger GC less often after CC
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
People
(Reporter: smaug, Unassigned)
Details
Attachments
(1 obsolete file)
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
The patch without magical 1.5 multiplier doesn't end up triggering GC pretty much ever, but then GC will often get called soon because of TOO_MUCH_MALLOC or INCREMENTAL_ALLOC_TRIGGER or some such.
Reporter | ||
Comment 3•5 years ago
|
||
Aha, and that magical multiplier seems to be needed because there is some other multiplier used for zones,
https://searchfox.org/mozilla-central/rev/da14c413ef663eb1ba246799e94a240f81c42488/js/src/gc/GC.cpp#298-299
Reporter | ||
Comment 4•5 years ago
|
||
Ok, perhaps I should have tried do something closer to what maybeMallocTriggerZoneGC does
Comment 5•5 years ago
|
||
I'm wondering whether we need something like MaybeGC that works for all zones and takes a multiplier parameter.
I like the idea of having a threshold value that is compared against current usage * some factor, and varying the factor according to current circumstances. This can be used to make GC more likely in some places (like here) and to discourage GC in other places where it's not convenient.
Reporter | ||
Comment 6•5 years ago
|
||
Updated the patch to use a bit different multipliers.
It is going through all the relevant zones to see if there is at least some reasonable amount of data to collect.
Reporter | ||
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Updated•2 years ago
|
Description
•