OSDN Git Service

Fix build breakage.
authorBarry Hayes <bhayes@google.com>
Mon, 22 Feb 2010 17:39:10 +0000 (09:39 -0800)
committerBarry Hayes <bhayes@google.com>
Mon, 22 Feb 2010 17:39:10 +0000 (09:39 -0800)
the "HeapChunk" abstraction was removed almost everywhere; but not here
until now.

vm/alloc/MarkSweep.c

index 4070f48..5ca2ad3 100644 (file)
@@ -1152,10 +1152,10 @@ sweepBitmapCallback(size_t numPtrs, void **ptrs, const void *finger, void *arg)
          * more obvious.
          */
         if (overwriteFree) {
-            int chunklen;
+            int objlen;
             ClassObject *clazz = obj->clazz;
-            chunklen = dvmHeapSourceChunkSize(obj);
-            memset(hc, 0xa5, chunklen);
+            objlen = dvmHeapSourceChunkSize(obj);
+            memset(obj, 0xa5, objlen);
             obj->clazz = (ClassObject *)((uintptr_t)clazz ^ 0xffffffff);
         }
     }