gecko/dom/workers
Mike Hommey 3ef8be4fa4 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
..
test Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen 2015-09-15 12:58:32 -07:00
ChromeWorkerScope.cpp
ChromeWorkerScope.h
DataStore.cpp Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug 2015-09-02 17:20:30 +01:00
DataStore.h
DataStoreCursor.cpp
DataStoreCursor.h
FileReaderSync.cpp
FileReaderSync.h
Location.cpp
Location.h
moz.build Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
Navigator.cpp Bug 1198814 - Use StructuredCloneHelper in PromiseWorkerProxy, r=smaug 2015-09-05 12:22:13 +03:00
Navigator.h
nsIWorkerDebugger.idl
nsIWorkerDebuggerManager.idl
Performance.cpp Bug 1196157 - Marks left by performance marks should print the domain of the application and not the complete URL. r=baku 2015-08-20 14:34:22 -07:00
Performance.h Bug 1186880 - Performance timing api in workers should output entries if preference is enabled. r=baku 2015-07-28 17:33:37 +01:00
Principal.cpp
Principal.h
PServiceWorkerManager.ipdl
Queue.h
RegisterBindings.cpp
RuntimeService.cpp Bug 1203840 - Trigger dirty pages purge after CC. r=njn,r=smaug,r=mccr8 2015-09-20 17:43:43 +09:00
RuntimeService.h
ScriptLoader.cpp Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi 2015-09-16 19:15:30 -04:00
ScriptLoader.h Bug 1198982: Don't fail the SW load for an importScripts failure. r=bkelly 2015-08-30 10:31:52 -07:00
ServiceWorker.cpp Bug 1193133 - Throw when calling postMessage from a Service Worker dom object with no global. r=bkelly 2015-08-17 10:38:34 -07:00
ServiceWorker.h Bug 1189668 - Check CSP before completing channel interception. r=ehsan 2015-09-20 00:32:14 -07:00
ServiceWorkerClient.cpp Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
ServiceWorkerClient.h Bug 1193133 - Drop the document and window references from ServiceWorker. r=bkelly 2015-08-17 10:38:34 -07:00
ServiceWorkerClients.cpp Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb 2015-09-02 10:07:26 -07:00
ServiceWorkerClients.h
ServiceWorkerCommon.h
ServiceWorkerContainer.cpp Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham. 2015-08-19 16:21:25 -07:00
ServiceWorkerContainer.h
ServiceWorkerEvents.cpp Bug 1189668 - Check CSP before completing channel interception. r=ehsan 2015-09-20 00:32:14 -07:00
ServiceWorkerEvents.h Bug 1205112 - Make PushEvent.data nullable. r=mt,smaug 2015-09-17 05:13:04 -07:00
ServiceWorkerManager.cpp Back out bug 1205109 for Push mochitest failure. 2015-09-18 18:15:23 -07:00
ServiceWorkerManager.h Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham. 2015-08-19 16:21:25 -07:00
ServiceWorkerManagerChild.cpp Bug 1187350 - update() should return a Promise. r=ehsan,catalinb 2015-08-14 15:06:00 -07:00
ServiceWorkerManagerChild.h
ServiceWorkerManagerParent.cpp
ServiceWorkerManagerParent.h
ServiceWorkerManagerService.cpp
ServiceWorkerManagerService.h
ServiceWorkerPeriodicUpdater.cpp
ServiceWorkerPeriodicUpdater.h
ServiceWorkerRegistrar.cpp Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE 2015-09-17 16:01:25 +02:00
ServiceWorkerRegistrar.h Bug 1189235 - Use originAttribute for ServiceWorkerRegistrar. r=baku 2015-08-20 18:20:19 +08:00
ServiceWorkerRegistrarTypes.ipdlh
ServiceWorkerRegistration.cpp Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen 2015-09-15 12:58:32 -07:00
ServiceWorkerRegistration.h Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen 2015-09-15 12:58:32 -07:00
ServiceWorkerScriptCache.cpp Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham. 2015-08-19 16:21:25 -07:00
ServiceWorkerScriptCache.h
ServiceWorkerWindowClient.cpp Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb 2015-09-02 10:07:26 -07:00
ServiceWorkerWindowClient.h
SharedWorker.cpp Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
SharedWorker.h Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
URL.cpp
URL.h
WorkerDebuggerManager.cpp
WorkerDebuggerManager.h
WorkerFeature.h
WorkerInlines.h
WorkerPrivate.cpp Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj. 2015-09-10 00:50:51 -07:00
WorkerPrivate.h Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen 2015-09-15 12:58:32 -07:00
WorkerRunnable.cpp
WorkerRunnable.h
Workers.h Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen 2015-09-15 12:58:32 -07:00
WorkerScope.cpp Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb 2015-09-02 10:07:26 -07:00
WorkerScope.h Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao 2015-07-23 08:30:27 -07:00
WorkerThread.cpp Bug 1179909: Refactor stable state handling. r=smaug 2015-08-11 06:10:46 -07:00
WorkerThread.h Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
XMLHttpRequest.cpp Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
XMLHttpRequest.h Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 17:19:13 +01:00
XMLHttpRequestUpload.cpp
XMLHttpRequestUpload.h