Revision: 15428
Author:   [email protected]
Date:     Mon Jul  1 08:12:59 2013
Log: Also delete optimization jobs in the output queue when stopping thread.

[email protected]
BUG=

Review URL: https://codereview.chromium.org/18364002
http://code.google.com/p/v8/source/detail?r=15428

Modified:
 /branches/bleeding_edge/src/optimizing-compiler-thread.cc

=======================================
--- /branches/bleeding_edge/src/optimizing-compiler-thread.cc Fri Jun 28 04:24:27 2013 +++ /branches/bleeding_edge/src/optimizing-compiler-thread.cc Mon Jul 1 08:12:59 2013
@@ -115,8 +115,11 @@
     InstallOptimizedFunctions();
   } else {
     OptimizingCompiler* optimizing_compiler;
+    // The optimizing compiler is allocated in the CompilationInfo's zone.
     while (input_queue_.Dequeue(&optimizing_compiler)) {
- // The optimizing compiler is allocated in the CompilationInfo's zone.
+      delete optimizing_compiler->info();
+    }
+    while (output_queue_.Dequeue(&optimizing_compiler)) {
       delete optimizing_compiler->info();
     }
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to