Bug 1152026 - Clear preempting runnable array when shutting down. r=baku, a=ritu
authorKyle Huey <khuey@kylehuey.com>
Wed, 26 Aug 2015 20:15:32 -0400
changeset 288907 5573079c91183242fd106079ea99191aa8d7f4bd
parent 288906 f6ed87e5d6419912ef4f21b63905529f66112bb7
child 288908 fe6c7020a8abe3ca31afc6a7b9900edcbf3bae9e
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku, ritu
bugs1152026
milestone42.0a2
Bug 1152026 - Clear preempting runnable array when shutting down. r=baku, a=ritu
dom/workers/WorkerPrivate.cpp
--- a/dom/workers/WorkerPrivate.cpp
+++ b/dom/workers/WorkerPrivate.cpp
@@ -5358,16 +5358,18 @@ WorkerPrivate::DoRunLoop(JSContext* aCx)
         if (!mControlQueue.IsEmpty()) {
           WorkerControlRunnable* runnable;
           while (mControlQueue.Pop(runnable)) {
             runnable->Cancel();
             runnable->Release();
           }
         }
 
+        mPreemptingRunnableInfos.Clear();
+
         // Clear away our MessagePorts.
         mWorkerPorts.Clear();
 
         // Unroot the globals
         mScope = nullptr;
         mDebuggerScope = nullptr;
 
         return;