diff options
Diffstat (limited to 'runtime/verify_object.h')
| -rw-r--r-- | runtime/verify_object.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/verify_object.h b/runtime/verify_object.h index 8e1653ddb9..384e56f7f4 100644 --- a/runtime/verify_object.h +++ b/runtime/verify_object.h @@ -20,6 +20,7 @@ #include <stdint.h> #include "base/macros.h" +#include "obj_ptr.h" namespace art { @@ -52,10 +53,10 @@ static constexpr VerifyObjectFlags kDefaultVerifyFlags = kVerifyNone; static constexpr VerifyObjectMode kVerifyObjectSupport = kDefaultVerifyFlags != 0 ? kVerifyObjectModeFast : kVerifyObjectModeDisabled; -ALWAYS_INLINE void VerifyObject(mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS; +ALWAYS_INLINE void VerifyObject(ObjPtr<mirror::Object> obj) NO_THREAD_SAFETY_ANALYSIS; // Check that c.getClass() == c.getClass().getClass(). -ALWAYS_INLINE bool VerifyClassClass(mirror::Class* c) NO_THREAD_SAFETY_ANALYSIS; +ALWAYS_INLINE bool VerifyClassClass(ObjPtr<mirror::Class> c) NO_THREAD_SAFETY_ANALYSIS; } // namespace art |