Reviewers: Sven Panne,

Description:
Add back missing allow handle deref scope

BUG=v8:3608
[email protected]
LOG=n

Please review this at https://codereview.chromium.org/935453006/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+4, -1 lines):
  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 fa524a867913305e874a62f2773e668d5cca518c..eda4f5ca9d9cb868a6c5df4cbc4b2675ff31f662 100644
--- a/src/optimizing-compiler-thread.cc
+++ b/src/optimizing-compiler-thread.cc
@@ -169,7 +169,10 @@ OptimizedCompileJob* OptimizingCompilerThread::NextInput(
   input_queue_length_--;
   if (check_if_flushing) {
if (static_cast<StopFlag>(base::Acquire_Load(&stop_thread_)) != CONTINUE) {
-      if (!job->info()->is_osr()) DisposeOptimizedCompileJob(job, true);
+      if (!job->info()->is_osr()) {
+        AllowHandleDereference allow_handle_dereference;
+        DisposeOptimizedCompileJob(job, true);
+      }
       return NULL;
     }
   }


--
--
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/d/optout.

Reply via email to