Initialize the JNI indirect reference table to make Valgrind happy.
This eliminates the benign warning about the 'serial' field being
uninitialized.
Bug: 5542417
Change-Id: Ibce1df7fd1e340306982a8ec08d3cc38d6ab32a1
diff --git a/src/indirect_reference_table.cc b/src/indirect_reference_table.cc
index 6eeb94a..f413236 100644
--- a/src/indirect_reference_table.cc
+++ b/src/indirect_reference_table.cc
@@ -41,9 +41,7 @@
table_ = reinterpret_cast<const Object**>(malloc(initialCount * sizeof(const Object*)));
CHECK(table_ != NULL);
-#ifndef NDEBUG
memset(table_, 0xd1, initialCount * sizeof(const Object*));
-#endif
slot_data_ = reinterpret_cast<IndirectRefSlot*>(calloc(initialCount, sizeof(IndirectRefSlot)));
CHECK(slot_data_ != NULL);