Bug 1401985 - Purge frontend collection pool after off thread parsing, r=jonco.
authorBrian Hackett <bhackett1024@gmail.com>
Thu, 21 Sep 2017 08:18:07 -0700
changeset 435541 5382070b3a0d041f9fb8b9d42f086a24183a2094
parent 435540 ecf1fb0316d98aa760062060036cdbd36e38233b
child 435542 e15e5c3c5c7182c0e36453b9c14fe91983098cbe
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1401985
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1401985 - Purge frontend collection pool after off thread parsing, r=jonco.
js/src/vm/HelperThreads.cpp
--- a/js/src/vm/HelperThreads.cpp
+++ b/js/src/vm/HelperThreads.cpp
@@ -1977,16 +1977,18 @@ HelperThread::handleParseWorkload(AutoLo
     {
         AutoUnlockHelperThreadState unlock(locked);
         AutoSetContextRuntime ascr(task->parseGlobal->runtimeFromAnyThread());
 
         JSContext* cx = TlsContext.get();
         AutoCompartment ac(cx, task->parseGlobal);
 
         task->parse(cx);
+
+        cx->frontendCollectionPool().purge();
     }
 
     // The callback is invoked while we are still off thread.
     task->callback(task, task->callbackData);
 
     // FinishOffThreadScript will need to be called on the script to
     // migrate it into the correct compartment.
     {