diff options
Diffstat (limited to 'runtime/gc/heap-inl.h')
-rw-r--r-- | runtime/gc/heap-inl.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/gc/heap-inl.h b/runtime/gc/heap-inl.h index 9c91b0e1a1..3d591f0cb0 100644 --- a/runtime/gc/heap-inl.h +++ b/runtime/gc/heap-inl.h @@ -28,6 +28,7 @@ #include "runtime.h" #include "thread.h" #include "thread-inl.h" +#include "verify_object-inl.h" namespace art { namespace gc { @@ -98,12 +99,8 @@ inline mirror::Object* Heap::AllocObjectWithAllocator(Thread* self, mirror::Clas if (AllocatorMayHaveConcurrentGC(allocator) && concurrent_gc_) { CheckConcurrentGC(self, new_num_bytes_allocated, obj); } - if (kIsDebugBuild) { - if (kDesiredHeapVerification > kNoHeapVerification) { - VerifyObject(obj); - } - self->VerifyStack(); - } + VerifyObject(obj); + self->VerifyStack(); return obj; } |