Bug 531225 - 'Workers: Share strings across thread boundary'. Fix shutdown leak.
authorBen Turner <bent.mozilla@gmail.com>
Tue, 23 Feb 2010 09:53:49 -0800
changeset 33603 a459d11674b4b8fe33b17d46b7addfa3f90bef2e
parent 33602 fac742496b10b06c3e70870294d510ebb8ed4fae
child 33604 a994e89a5f59c352da12f786ec2fbcb433008977
push id1073
push userbturner@mozilla.com
push dateTue, 23 Feb 2010 17:54:31 +0000
bugs531225
milestone1.9.2.2pre
Bug 531225 - 'Workers: Share strings across thread boundary'. Fix shutdown leak.
dom/src/threads/nsDOMThreadService.cpp
--- a/dom/src/threads/nsDOMThreadService.cpp
+++ b/dom/src/threads/nsDOMThreadService.cpp
@@ -879,25 +879,16 @@ nsDOMThreadService::Cleanup()
       JS_GC(safeContext);
     }
     NS_RELEASE(gThreadJSContextStack);
   }
 
   // These must be released after the thread pool is shut down.
   NS_IF_RELEASE(gJSRuntimeService);
   NS_IF_RELEASE(gWorkerSecurityManager);
-
-  if (sStringFinalizerIndex != -1) {
-#ifdef DEBUG
-    int index =
-#endif
-    JS_RemoveExternalStringFinalizer(StringFinalizer);
-    NS_ASSERTION(index == sStringFinalizerIndex, "Bad index!");
-    sStringFinalizerIndex = -1;
-  }
 }
 
 nsresult
 nsDOMThreadService::Dispatch(nsDOMWorker* aWorker,
                              nsIRunnable* aRunnable,
                              PRIntervalTime aTimeoutInterval,
                              PRBool aClearQueue)
 {