diff options
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 63976d0b14..caf554550e 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -1972,6 +1972,11 @@ bool Runtime::IsVerificationSoftFail() const { return verify_ == verifier::VerifyMode::kSoftFail; } +bool Runtime::IsDeoptimizeable(uintptr_t code) const + SHARED_REQUIRES(Locks::mutator_lock_) { + return !heap_->IsInBootImageOatFile(reinterpret_cast<void *>(code)); +} + LinearAlloc* Runtime::CreateLinearAlloc() { // For 64 bit compilers, it needs to be in low 4GB in the case where we are cross compiling for a // 32 bit target. In this case, we have 32 bit pointers in the dex cache arrays which can't hold |