Reviewers: Hannes Payer,
Description:
Also delete optimization jobs in the output queue when stopping thread.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/18364002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/optimizing-compiler-thread.cc
Index: src/optimizing-compiler-thread.cc
diff --git a/src/optimizing-compiler-thread.cc
b/src/optimizing-compiler-thread.cc
index
dbf9ad7cdcdb57e2455fb89d58cf87b3d4227197..a4300f5e7c43dfcf3c42120ad3f385b9fd15c201
100644
--- a/src/optimizing-compiler-thread.cc
+++ b/src/optimizing-compiler-thread.cc
@@ -115,8 +115,11 @@ void OptimizingCompilerThread::Stop() {
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.