summaryrefslogtreecommitdiffstats
path: root/src/heap.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-09-02 18:26:12 -0700
committerElliott Hughes <enh@google.com>2011-09-02 18:26:12 -0700
commit3e465b1a72d89f7c30f18efb90dc688d33d46c16 (patch)
tree2bac1709132fd261d54abdb3601f64065ea210b7 /src/heap.h
parent0db460b881a3fdaa63d581a1dc39e417d682faaa (diff)
downloadart-3e465b1a72d89f7c30f18efb90dc688d33d46c16.zip
art-3e465b1a72d89f7c30f18efb90dc688d33d46c16.tar.gz
art-3e465b1a72d89f7c30f18efb90dc688d33d46c16.tar.bz2
Get the test speed back to where it was.
(This patch actually has an active ingredient, unlike my last screwup.) Change-Id: Ic9f48a1c7c62ea024c51dc57e245a7d4df068db0
Diffstat (limited to 'src/heap.h')
-rw-r--r--src/heap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/heap.h b/src/heap.h
index bc06289..5168fe7 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -9,6 +9,8 @@
#include "object_bitmap.h"
#include "offsets.h"
+#define VERIFY_OBJECT_ENABLED 0
+
namespace art {
class Class;
@@ -35,7 +37,11 @@ class Heap {
static Object* AllocObject(Class* klass, size_t num_bytes);
// Check sanity of given reference. Requires the heap lock.
+#if VERIFY_OBJECT_ENABLED
static void VerifyObject(const Object *obj);
+#else
+ static void VerifyObject(const Object *obj) {}
+#endif
// Check sanity of all live references. Requires the heap lock.
static void VerifyHeap();