diff options
Diffstat (limited to 'runtime/scoped_thread_state_change.h')
-rw-r--r-- | runtime/scoped_thread_state_change.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/scoped_thread_state_change.h b/runtime/scoped_thread_state_change.h index 1ca6c4e4fa..2f959dbcb7 100644 --- a/runtime/scoped_thread_state_change.h +++ b/runtime/scoped_thread_state_change.h @@ -19,6 +19,7 @@ #include "base/casts.h" #include "thread-inl.h" +#include "verify_object.h" namespace art { @@ -165,9 +166,7 @@ class ScopedObjectAccessUnchecked : public ScopedThreadStateChange { return NULL; } - if (kIsDebugBuild) { - Runtime::Current()->GetHeap()->VerifyObject(obj); - } + VerifyObject(obj); DCHECK_NE((reinterpret_cast<uintptr_t>(obj) & 0xffff0000), 0xebad0000); |