diff options
Diffstat (limited to 'runtime/obj_ptr.h')
-rw-r--r-- | runtime/obj_ptr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/obj_ptr.h b/runtime/obj_ptr.h index 74be44eb23..75a6f9fe55 100644 --- a/runtime/obj_ptr.h +++ b/runtime/obj_ptr.h @@ -22,7 +22,6 @@ #include "base/mutex.h" // For Locks::mutator_lock_. #include "globals.h" -#include "mirror/object_reference.h" namespace art { @@ -32,7 +31,7 @@ namespace art { template<class MirrorType, bool kPoison = kIsDebugBuild> class ObjPtr { static constexpr size_t kCookieShift = - sizeof(mirror::HeapReference<mirror::Object>) * kBitsPerByte - kObjectAlignmentShift; + sizeof(kHeapReferenceSize) * kBitsPerByte - kObjectAlignmentShift; static constexpr size_t kCookieBits = sizeof(uintptr_t) * kBitsPerByte - kCookieShift; static constexpr uintptr_t kCookieMask = (static_cast<uintptr_t>(1u) << kCookieBits) - 1; |