Revision: 15261
Author: [email protected]
Date: Fri Jun 21 01:37:05 2013
Log: Clean up queued compilation tasks when quitting.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/17543002
http://code.google.com/p/v8/source/detail?r=15261
Modified:
/branches/bleeding_edge/src/optimizing-compiler-thread.cc
=======================================
--- /branches/bleeding_edge/src/optimizing-compiler-thread.cc Wed Jun 19
23:23:34 2013
+++ /branches/bleeding_edge/src/optimizing-compiler-thread.cc Fri Jun 21
01:37:05 2013
@@ -106,12 +106,15 @@
stop_semaphore_->Wait();
if (FLAG_parallel_recompilation_delay != 0) {
- InstallOptimizedFunctions();
// Barrier when loading queue length is not necessary since the write
// happens in CompileNext on the same thread.
- while (NoBarrier_Load(&queue_length_) > 0) {
- CompileNext();
- InstallOptimizedFunctions();
+ while (NoBarrier_Load(&queue_length_) > 0) CompileNext();
+ InstallOptimizedFunctions();
+ } else {
+ OptimizingCompiler* optimizing_compiler;
+ while (input_queue_.Dequeue(&optimizing_compiler)) {
+ // The optimizing compiler is allocated in the CompilationInfo's
zone.
+ 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.