Lines Matching refs:msp
65 mspace msp; member
225 return mspace_footprint_limit(hs2heap(hs)->msp); in getAllocLimit()
245 footprint += mspace_footprint(hs->heaps[i].msp); in oldHeapOverhead()
280 assert(heap->bytesAllocated < mspace_footprint(heap->msp)); in countAllocation()
288 assert(heap->bytesAllocated < mspace_footprint(heap->msp)); in countAllocation()
319 mspace msp = create_mspace_with_base(begin, morecoreStart, false /*locked*/); in createMspace() local
320 if (msp != NULL) { in createMspace()
322 mspace_set_footprint_limit(msp, startingSize); in createMspace()
326 return msp; in createMspace()
336 if (gHs->heaps[i].msp == mspace) { in dvmHeapSourceMorecore()
372 static bool addInitialHeap(HeapSource *hs, mspace msp, size_t maximumSize) in addInitialHeap() argument
375 assert(msp != NULL); in addInitialHeap()
379 hs->heaps[0].msp = msp; in addInitialHeap()
460 heap.msp = createMspace(base, morecoreStart, hs->minFree); in addNewHeap()
461 if (heap.msp == NULL) { in addNewHeap()
469 mspace_set_footprint_limit(hs->heaps[0].msp, overhead); in addNewHeap()
597 mspace msp; in dvmHeapSourceStartup() local
622 msp = createMspace(base, kInitialMorecoreStart, startSize); in dvmHeapSourceStartup()
623 if (msp == NULL) { in dvmHeapSourceStartup()
667 if (!addInitialHeap(hs, msp, growthLimit)) { in dvmHeapSourceStartup()
808 assert(value == mspace_footprint(heap->msp)); in dvmHeapSourceGetValue()
811 value = mspace_footprint_limit(heap->msp); in dvmHeapSourceGetValue()
941 ptr = mspace_malloc(heap->msp, n); in dvmHeapSourceAlloc()
966 ptr = mspace_calloc(heap->msp, 1, n); in dvmHeapSourceAlloc()
1003 mspace_set_footprint_limit(heap->msp, max); in heapAllocAndGrow()
1009 mspace_set_footprint_limit(heap->msp, in heapAllocAndGrow()
1010 mspace_footprint(heap->msp)); in heapAllocAndGrow()
1083 mspace msp = heap->msp; in dvmHeapSourceFreeList() local
1096 mspace_bulk_free(msp, ptrs, numPtrs); in dvmHeapSourceFreeList()
1256 mspace msp = hs->heaps[0].msp; in setSoftLimit() local
1257 size_t currentHeapSize = mspace_footprint(msp); in setSoftLimit()
1261 mspace_set_footprint_limit(msp, currentHeapSize); in setSoftLimit()
1267 mspace_set_footprint_limit(msp, softLimit); in setSoftLimit()
1457 mspace_trim(heap->msp, 0); in trimHeaps()
1460 mspace_inspect_all(heap->msp, releasePagesInRange, &heapBytes); in trimHeaps()
1487 mspace_inspect_all(hs->heaps[i-1].msp, callback, arg); in dvmHeapSourceWalk()