Index: src/optimizing-compiler-thread.cc |
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc |
index fa2da9761a03bdcff6596909dac20ee0f05ebcc3..0b35648dac477ea16978dfb01e08ab6851f6368b 100644 |
--- a/src/optimizing-compiler-thread.cc |
+++ b/src/optimizing-compiler-thread.cc |
@@ -37,6 +37,17 @@ |
namespace v8 { |
namespace internal { |
+OptimizingCompilerThread::~OptimizingCompilerThread() { |
+#ifdef DEBUG |
+ for (int i = 0; i < osr_buffer_capacity_; i++) { |
+ CHECK_EQ(NULL, osr_buffer_[i]); |
+ } |
+#endif |
+ DeleteArray(osr_buffer_); |
+ ASSERT_EQ(0, input_queue_length_); |
+ DeleteArray(input_queue_); |
+} |
+ |
void OptimizingCompilerThread::Run() { |
#ifdef DEBUG |