Remove outdated asserts.
Previously, the GcHeap structure was allocated, somewhat confusingly,
on the garbage collected heap. Two asserts checked that the address
of the GcHeap structure, before being deallocated, was inside garbage
collected heap. The GcHeap structure is now allocated on the malloc
heap and these assertions are no longer valid.
Change-Id: Ia031d116e94cf1e731315bb90077df8a82e41c55
diff --git a/vm/alloc/HeapSource.c b/vm/alloc/HeapSource.c
index 666e88d..4b61358 100644
--- a/vm/alloc/HeapSource.c
+++ b/vm/alloc/HeapSource.c
@@ -622,10 +622,9 @@
void
dvmHeapSourceShutdown(GcHeap **gcHeap)
{
+ assert(gcHeap != NULL);
if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) {
HeapSource *hs = (*gcHeap)->heapSource;
- assert((char *)*gcHeap >= hs->heapBase);
- assert((char *)*gcHeap < hs->heapBase + hs->heapLength);
dvmHeapBitmapDelete(&hs->liveBits);
dvmHeapBitmapDelete(&hs->markBits);
freeMarkStack(&(*gcHeap)->markContext.stack);