Lines Matching defs:arg
216 static void countWhiteReferenceVisitor(void *addr, void *arg)
222 assert(arg != NULL);
228 ctx = (WhiteReferenceCounter *)arg;
238 static void dumpWhiteReferenceVisitor(void *addr, void *arg)
244 assert(arg != NULL);
250 ctx = (WhiteReferenceCounter*)arg;
260 static void dumpReferencesVisitor(void *pObj, void *arg)
263 Object *lookingFor = *(Object **)arg;
265 *(Object **)arg = NULL;
269 static void dumpReferencesCallback(Object *obj, void *arg)
271 if (obj == (Object *)arg) {
274 dvmVisitObject(dumpReferencesVisitor, obj, &arg);
275 if (arg == NULL) {
276 ALOGD("Found %p in the heap @ %p", arg, obj);
285 RootType type, void *arg)
288 Object *lookingFor = *(Object **)arg;
290 ALOGD("Found %p in a root @ %p", arg, ptr);
300 void *arg = (void *)obj;
301 dvmVisitRoots(dumpReferencesRootVisitor, arg);
302 dvmHeapBitmapWalk(bitmap, dumpReferencesCallback, arg);
363 static void verifyCardTableCallback(Object *obj, void *arg)
365 WhiteReferenceCounter ctx = { (HeapBitmap *)arg, 0 };