summaryrefslogtreecommitdiffstats
path: root/runtime/stack.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-03-03 12:44:53 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-03-03 12:44:53 +0000
commit9729e52171e8f1e18681a7c7b57efd059f6563e7 (patch)
treefdabf1d965d7d3d5b07813a273053d749e190194 /runtime/stack.cc
parent207fc169d52c17f50c3a9e4ce0442d241c31b5fa (diff)
downloadart-9729e52171e8f1e18681a7c7b57efd059f6563e7.zip
art-9729e52171e8f1e18681a7c7b57efd059f6563e7.tar.gz
art-9729e52171e8f1e18681a7c7b57efd059f6563e7.tar.bz2
Revert GetThisObject change.
Code was changed to use sizeof(void*) instead of the runtime instruction set pointer size, which caused host compilation crashes. Change-Id: I3e59897620d6e55b43d6d76b5a0d6d0487b8081a
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r--runtime/stack.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index d570880..97a8d01 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";