diff options
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-rw-r--r-- | runtime/jit/jit_code_cache.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc index 6a7820b207..d05baf2c57 100644 --- a/runtime/jit/jit_code_cache.cc +++ b/runtime/jit/jit_code_cache.cc @@ -1599,18 +1599,6 @@ bool JitCodeCache::NotifyCompilationOf(ArtMethod* method, } else { if (compilation_kind == CompilationKind::kBaseline) { DCHECK(CanAllocateProfilingInfo()); - bool has_profiling_info = false; - { - MutexLock mu(self, *Locks::jit_lock_); - has_profiling_info = (profiling_infos_.find(method) != profiling_infos_.end()); - } - if (!has_profiling_info) { - if (ProfilingInfo::Create(self, method) == nullptr) { - VLOG(jit) << method->PrettyMethod() << " needs a ProfilingInfo to be compiled baseline"; - ClearMethodCounter(method, /*was_warm=*/ false); - return false; - } - } } } return true; |