Lines Matching refs:ptrs
943 * Frees the first numPtrs objects in the ptrs list and returns the
948 size_t dvmHeapSourceFreeList(size_t numPtrs, void **ptrs)
959 assert(ptrs != NULL);
960 assert(*ptrs != NULL);
961 heap = ptr2heap(gHs, *ptrs);
977 // ptrs is an array of objects all in memory order, and if
983 // countFree ptrs[0] and initializing merged.
984 assert(ptrs[0] != NULL);
985 assert(ptr2heap(gHs, ptrs[0]) == heap);
986 countFree(heap, ptrs[0], &numBytes);
987 void *merged = ptrs[0];
992 assert(ptrs[i] != NULL);
993 assert((intptr_t)merged < (intptr_t)ptrs[i]);
994 assert(ptr2heap(gHs, ptrs[i]) == heap);
995 countFree(heap, ptrs[i], &numBytes);
997 // memory of ptrs[i]. If it doesn't, free merged, and
998 // see if ptrs[i] starts a new run of adjacent
1000 if (mspace_merge_objects(msp, merged, ptrs[i]) == NULL) {
1002 merged = ptrs[i];
1011 assert(ptrs[i] != NULL);
1012 assert(ptr2heap(gHs, ptrs[i]) == heap);
1013 countFree(heap, ptrs[i], &numBytes);