From c7d11887725e28db2796c848f4485e59d5eb690c Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Tue, 3 Feb 2015 15:08:39 -0800 Subject: Handle variable size of methods properly between 32 and 64 bit. Bug: 19100762 Change-Id: I62358905fa882284d0201ed3c1e97e1286ccec5f --- runtime/stack.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/stack.cc') diff --git a/runtime/stack.cc b/runtime/stack.cc index b771aa71a1..b39aebfc4f 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -134,7 +134,8 @@ mirror::Object* StackVisitor::GetThisObject() const { } else { return cur_shadow_frame_->GetVRegReference(0); } - } else if (m->IsOptimized(sizeof(void*))) { + } else if (m->IsOptimized(GetInstructionSetPointerSize( + Runtime::Current()->GetInstructionSet()))) { // TODO: Implement, currently only used for exceptions when jdwp is enabled. UNIMPLEMENTED(WARNING) << "StackVisitor::GetThisObject is unimplemented with the optimizing compiler"; -- cgit v1.2.3