Don't use dvmIsValidObject outside the GC.
Use dvmIsHeapPointer outside the GC. (This still isn't safe because there's
no synchronization when dealing with the HeapSource.)
Bug: 5049447
Change-Id: Ie0b325ef0a92687ea1eaf1491a4bb832298893c5
diff --git a/vm/IndirectRefTable.cpp b/vm/IndirectRefTable.cpp
index 58fa0f7..424bee1 100644
--- a/vm/IndirectRefTable.cpp
+++ b/vm/IndirectRefTable.cpp
@@ -90,7 +90,7 @@
size_t topIndex = segmentState.parts.topIndex;
assert(obj != NULL);
- assert(dvmIsValidObject(obj));
+ assert(dvmIsHeapAddress(obj));
assert(table != NULL);
assert(allocEntries <= maxEntries);
assert(segmentState.parts.numHoles >= prevState.parts.numHoles);