| 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;
|
| }
|
| }
|
|
|