Bug 819329 - Use AutoFlushCache when attaching finished compilations, r=dvander.
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 12 Dec 2012 13:18:00 -0700 (2012-12-12)
changeset 115820 64186de82d6debd457e949a38379d76e98eda217
parent 115819 5bbd7e9882b3f60c780a8d36c6743a9aa23adaad
child 115821 a050d7a604fe3ebe70de7fcb39eb9ee5d6d10bbf
push id19559
push userbhackett@mozilla.com
push dateWed, 12 Dec 2012 20:18:12 +0000 (2012-12-12)
treeherdermozilla-inbound@64186de82d6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs819329
milestone20.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 819329 - Use AutoFlushCache when attaching finished compilations, r=dvander.
js/src/ion/Ion.cpp
--- a/js/src/ion/Ion.cpp
+++ b/js/src/ion/Ion.cpp
@@ -1079,16 +1079,17 @@ AttachFinishedCompilations(JSContext *cx
             types::AutoEnterCompilation enterCompiler(cx, CompilerOutputKind(executionMode));
             enterCompiler.initExisting(builder->recompileInfo);
 
             bool success;
             {
                 // Release the worker thread lock and root the compiler for GC.
                 AutoTempAllocatorRooter root(cx, &builder->temp());
                 AutoUnlockWorkerThreadState unlock(cx->runtime);
+                AutoFlushCache afc("AttachFinishedCompilations");
                 success = codegen->link();
             }
 
             if (success) {
                 if (script->hasIonScript())
                     mjit::DisableScriptCodeForIon(script, script->ionScript()->osrPc());
             } else {
                 // Silently ignore OOM during code generation, we're at an