summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/interpreter/mterp/nterp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/interpreter/mterp/nterp.cc b/runtime/interpreter/mterp/nterp.cc
index da2b3e2479..74e49e7322 100644
--- a/runtime/interpreter/mterp/nterp.cc
+++ b/runtime/interpreter/mterp/nterp.cc
@@ -48,8 +48,9 @@ bool CanRuntimeUseNterp() REQUIRES_SHARED(Locks::mutator_lock_) {
bool CanMethodUseNterp(ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_) {
return !method->IsNative() &&
- method->SkipAccessChecks() &&
method->IsInvokable() &&
+ // Nterp supports the same methods the compiler supports.
+ method->IsCompilable() &&
!method->MustCountLocks() &&
// Proxy methods do not go through the JIT like other methods, so we don't
// run them with nterp.