gecko/js
Mike Hommey 5cd6b3d15e Bug 1203840 - Trigger dirty pages purge after CC. r=njn,r=smaug,r=mccr8
Jemalloc 4 purges dirty pages regularly during free() when the ratio of dirty
pages compared to active pages is higher than 1 << lg_dirty_mult.  We set
lg_dirty_mult in jemalloc_config to limit RSS usage, but it also has an impact
on performance.

So instead of enforcing a high ratio to force more pages being purged, we keep
jemalloc's default ratio of 8, and force a regular purge of all dirty pages,
after cycle collection.

Keeping jemalloc's default ratio avoids cycle-collection-triggered purge to
have to go through really all dirty pages when there are a lot, in which case
the normal jemalloc purge during free() will already have kicked in. It also
takes care of everything that doesn't run the cycle collector still having
a level of purge, like plugins in the plugin-container.

At the same time, since jemalloc_purge_freed_pages does nothing with jemalloc 4,
repurpose the MEMORY_FREE_PURGED_PAGES_MS telemetry probe to track the time
spent in this cycle-collector-triggered purge.
2015-09-20 17:43:43 +09:00
..
ductwork/debugger Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
examples Bug 1193583 - Rename Debugger.evalInGlobal to executeInGlobal. (r=jorendorff) 2015-08-30 15:08:19 -07:00
ipc Bug 603201 - Change GetProperty receiver argument to Value in the browser. r=smaug 2015-09-18 00:14:41 +02:00
public Bug 1204584 - Ensure that entries created by AutoSPSEntry propogate their category information; r=djvj 2015-09-19 11:19:07 +02:00
src Backout d29fef133d8a for octane regressions. 2015-09-19 14:46:48 -06:00
xpconnect Bug 1203840 - Trigger dirty pages purge after CC. r=njn,r=smaug,r=mccr8 2015-09-20 17:43:43 +09:00