summaryrefslogtreecommitdiff
path: root/runtime/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/thread.cc')
-rw-r--r--runtime/thread.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index 33cd9bbb67..6c41ae42b7 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -1952,8 +1952,7 @@ struct StackDumpVisitor : public MonitorObjectsStackVisitor {
override
REQUIRES_SHARED(Locks::mutator_lock_) {
m = m->GetInterfaceMethodIfProxy(kRuntimePointerSize);
- ObjPtr<mirror::Class> c = m->GetDeclaringClass();
- ObjPtr<mirror::DexCache> dex_cache = c->GetDexCache();
+ ObjPtr<mirror::DexCache> dex_cache = m->GetDexCache();
int line_number = -1;
if (dex_cache != nullptr) { // be tolerant of bad input
const DexFile* dex_file = dex_cache->GetDexFile();