summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/interpreter/interpreter_common.h')
-rw-r--r--runtime/interpreter/interpreter_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/interpreter/interpreter_common.h b/runtime/interpreter/interpreter_common.h
index 1809227f2c..4cbe81d0c2 100644
--- a/runtime/interpreter/interpreter_common.h
+++ b/runtime/interpreter/interpreter_common.h
@@ -46,6 +46,7 @@
#include "dex/dex_instruction-inl.h"
#include "entrypoints/entrypoint_utils-inl.h"
#include "handle_scope-inl.h"
+#include "interpreter_cache-inl.h"
#include "interpreter_switch_impl.h"
#include "jit/jit-inl.h"
#include "mirror/call_site.h"
@@ -238,7 +239,7 @@ static ALWAYS_INLINE bool DoInvoke(Thread* self,
InterpreterCache* tls_cache = self->GetInterpreterCache();
size_t tls_value;
ArtMethod* resolved_method;
- if (!IsNterpSupported() && LIKELY(tls_cache->Get(inst, &tls_value))) {
+ if (!IsNterpSupported() && LIKELY(tls_cache->Get(self, inst, &tls_value))) {
resolved_method = reinterpret_cast<ArtMethod*>(tls_value);
} else {
ClassLinker* const class_linker = Runtime::Current()->GetClassLinker();
@@ -252,7 +253,7 @@ static ALWAYS_INLINE bool DoInvoke(Thread* self,
return false;
}
if (!IsNterpSupported()) {
- tls_cache->Set(inst, reinterpret_cast<size_t>(resolved_method));
+ tls_cache->Set(self, inst, reinterpret_cast<size_t>(resolved_method));
}
}