Bug 1219919 - Add suppressions for Windows-specific content process graphics leaks. r=erahm, a=npotb
authorAndrew McCreight <continuation@gmail.com>
Tue, 02 Feb 2016 14:49:12 -0800
changeset 303757 52d03258c7446174ae3f47d1ab9d687acdb4eee3
parent 303756 181da1492d9ce2b07fc2804fb99cd632b1cdca89
child 303758 eaba78bb2eae8f7373c0440d6903e62689eeec75
push id9005
push userryanvm@gmail.com
push dateWed, 03 Feb 2016 03:29:18 +0000
treeherdermozilla-aurora@52d03258c744 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserahm, npotb
bugs1219919
milestone46.0a2
Bug 1219919 - Add suppressions for Windows-specific content process graphics leaks. r=erahm, a=npotb
testing/mozbase/mozleak/mozleak/leaklog.py
--- a/testing/mozbase/mozleak/mozleak/leaklog.py
+++ b/testing/mozbase/mozleak/mozleak/leaklog.py
@@ -56,20 +56,65 @@ def expectedTabProcessLeakCounts():
         'RefCountedMonitor': 1,
         'RefCountedTask': 2,
         'StoreRef': 1,
         'WeakReference<MessageListener>': 1,
         'ipc::MessageChannel': 1,
         'nsTArray_base': 2,
     })
 
-    # Bug 1219369 - On Aurora, we leak a SyncObject in Windows.
-    appendExpectedLeakCounts({
-        'SyncObject': 1
-    })
+    # Bug 1215265 - Windows-specific graphics leaks, maybe related to
+    # CompositorChild and/or ImageBridgeChild not being shut down.
+    if mozinfo.isWin:
+        # Windows leaks comment to all content processes.
+        # 2696 bytes leaked total on Win7.
+        appendExpectedLeakCounts({
+            'AsyncTransactionTrackersHolder': 1,
+            'CompositableChild': 1,
+            'Mutex': 1,
+            'PCompositableChild': 1,
+            'PImageContainerChild': 1,
+            'SyncObject': 1,
+            'WeakReference<MessageListener>': 2,
+        })
+
+        # Various additional graphics-related Windows leaks in Mochitests.
+        # M2 leaks in dom/media/tests/mochitest/ipc/
+        # dt1 leaks in devtools/client/animationinspector/test/browser_animation_animated_properties_displayed.js
+        # dt1 leaks in devtools/client/debugger/test/mochitest/ (additional leaks are intermittent?)
+        # dt2 leaks in devtools/client/inspector/computed/test/
+        # dt8 leaks in devtools/shared/worker/tests/browser/ (additional leaks are intermittent?)
+        # gl leaks in dom/canvas/test/webgl-mochitest/
+        appendExpectedLeakCounts({
+            'AsyncTransactionTracker': 1,
+            'AsyncTransactionTrackersHolder': 4,
+            'AsyncTransactionWaiter': 1,
+            'CompositableChild': 3,
+            'CompositableClient': 3,
+            'CondVar': 5,
+            'DXGID3D9TextureData': 1,
+            'FdObj': 2,
+            'GfxTextureWasteTracker': 1,
+            'IPC::Message': 1,
+            'ITextureClientRecycleAllocator': 1,
+            'LayerTransactionChild': 5,
+            'Mutex': 7,
+            'PCompositableChild': 3,
+            'PImageContainerChild': 3,
+            'PLayerTransactionChild': 5,
+            'PTextureChild': 5,
+            'RemoveTextureFromCompositableTracker': 1,
+            'SharedMemory': 5,
+            'SyncObject': 5,
+            'TextureChild': 5,
+            'TextureClientHolder': 1,
+            'TextureData': 5,
+            'WeakReference<MessageListener>': 10,
+            'nsTArray_base': 17,
+        })
 
     # Bug 1219916 - On Aurora, we leak textures and image containers
     # on Windows.
     appendExpectedLeakCounts({
         'AsyncTransactionTrackersHolder': 4,
         'CompositableChild': 4,
         'CondVar': 4,
         'Mutex': 8,