summaryrefslogtreecommitdiff
path: root/runtime/verify_object-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/verify_object-inl.h')
-rw-r--r--runtime/verify_object-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/verify_object-inl.h b/runtime/verify_object-inl.h
index 4892b49533..43151dd425 100644
--- a/runtime/verify_object-inl.h
+++ b/runtime/verify_object-inl.h
@@ -29,7 +29,7 @@ inline void VerifyObject(ObjPtr<mirror::Object> obj) {
if (kVerifyObjectSupport > kVerifyObjectModeDisabled && obj != nullptr) {
if (kVerifyObjectSupport > kVerifyObjectModeFast) {
// Slow object verification, try the heap right away.
- Runtime::Current()->GetHeap()->VerifyObjectBody(obj.Ptr());
+ Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
} else {
// Fast object verification, only call the heap if our quick sanity tests fail. The heap will
// print the diagnostic message.
@@ -40,7 +40,7 @@ inline void VerifyObject(ObjPtr<mirror::Object> obj) {
failed = failed || !VerifyClassClass(c);
}
if (UNLIKELY(failed)) {
- Runtime::Current()->GetHeap()->VerifyObjectBody(obj.Ptr());
+ Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
}
}
}