Searched refs:bitmap (Results 1 - 10 of 10) sorted by relevance

/dalvik/vm/alloc/
H A DVerify.h26 * Verifies the object references in a heap bitmap. Assumes the VM is
29 void dvmVerifyBitmap(const HeapBitmap *bitmap);
H A DHeapBitmap.cpp22 * Initialize a HeapBitmap so that it points to a bitmap large
48 * Clean up any resources associated with the bitmap.
61 * Fill the bitmap with zeroes. Returns the bitmap's memory to
79 * bitmap could potentially cover, even if a bit has not been set
95 * change the bitmap bits or max during the traversal.
97 void dvmHeapBitmapWalk(const HeapBitmap *bitmap, BitmapCallback *callback, argument
100 assert(bitmap != NULL);
101 assert(bitmap->bits != NULL);
103 uintptr_t end = HB_OFFSET_TO_INDEX(bitmap
131 dvmHeapBitmapScanWalk(HeapBitmap *bitmap, BitmapScanCallback *callback, void *arg) argument
[all...]
H A DVerify.cpp38 * Visitor applied to each bitmap element to search for things that
72 HeapBitmap *bitmap = dvmHeapSourceGetLiveBits(); local
75 dvmHeapBitmapWalk(bitmap, dumpReferencesCallback, arg);
119 * Helper function to call dvmVerifyObject from a bitmap walker.
127 * Verifies the object references in a heap bitmap. Assumes the VM is
130 void dvmVerifyBitmap(const HeapBitmap *bitmap) argument
132 dvmHeapBitmapWalk(bitmap, verifyBitmapCallback, NULL);
H A DMarkSweep.h43 HeapBitmap *bitmap; member in struct:GcMarkContext
H A DHeapBitmap.h45 /* The bitmap data, which points to an mmap()ed area of zeroed
51 * value changes when the bitmap is shrunk.
62 * the bitmap.
81 * Initialize a HeapBitmap so that it points to a bitmap large
89 * Clean up any resources associated with the bitmap.
94 * Fill the bitmap with zeroes. Returns the bitmap's memory to
100 * Returns true if the address range of the bitmap covers the object
106 * Applies the callback function to each set address in the bitmap.
108 void dvmHeapBitmapWalk(const HeapBitmap *bitmap,
[all...]
H A DAlloc.cpp340 HeapBitmap *bitmap = dvmHeapSourceGetLiveBits(); local
341 dvmHeapBitmapWalk(bitmap, countInstancesOfClassCallback, &ctx);
359 HeapBitmap *bitmap = dvmHeapSourceGetLiveBits(); local
360 dvmHeapBitmapWalk(bitmap, countAssignableInstancesOfClassCallback, &ctx);
H A DCardTable.cpp299 HeapBitmap *bitmap = dvmHeapSourceGetLiveBits(); local
302 dvmHeapBitmapWalk(bitmap, dumpReferencesCallback, arg);
392 HeapBitmap *markBits = gDvm.gcHeap->markContext.bitmap;
H A DCopying.cpp147 static size_t sumHeapBitmap(const HeapBitmap *bitmap);
559 * Performs a shallow copy of the allocation bitmap into the given
674 HeapBitmap *bitmap; local
677 bitmap = &heapSource->allocBits;
678 if (!dvmHeapBitmapCoversAddress(bitmap, addr)) {
681 return dvmHeapBitmapIsObjectBitSet(bitmap, addr);
829 static size_t sumHeapBitmap(const HeapBitmap *bitmap)
832 for (size_t i = 0; i < bitmap->bitsLen >> 2; ++i) {
833 sum += CLZ(bitmap->bits[i]);
H A DMarkSweep.cpp37 return dvmHeapBitmapIsObjectBitSet(ctx->bitmap, obj);
103 return dvmHeapBitmapSetAndReturnObjectBit(ctx->bitmap, obj);
130 * the finger won't be visited by the bitmap scan, so those objects
523 const HeapBitmap *markBits = ctx->bitmap;
581 * Callback for scanning each object in the bitmap. The finger is set
583 * of bits in the bitmap.
605 dvmHeapBitmapScanWalk(ctx->bitmap, scanBitmapCallback, ctx);
H A DHeapSource.cpp172 * The live object bitmap.
177 * The mark bitmap.
671 if (!dvmHeapBitmapInit(&hs->liveBits, base, length, "dalvik-bitmap-1")) {
675 if (!dvmHeapBitmapInit(&hs->markBits, base, length, "dalvik-bitmap-2")) {
686 gcHeap->markContext.bitmap = &hs->markBits;
845 * Get the bitmap representing all live objects.
855 * Get the bitmap representing all marked objects.
896 /* Compute the number of words to copy in the bitmap. */
902 /* Compute the number of bytes of the live bitmap to copy. */

Completed in 61 milliseconds