Lines Matching refs:msp
103 mspace *msp; member
207 footprint += mspace_footprint(hs->heaps[i].msp); in oldHeapOverhead()
246 assert(heap->bytesAllocated < mspace_footprint(heap->msp)); in countAllocation()
248 heap->bytesAllocated += mspace_usable_size(heap->msp, ptr) + in countAllocation()
255 assert(heap->bytesAllocated < mspace_footprint(heap->msp)); in countAllocation()
263 delta = mspace_usable_size(heap->msp, ptr) + HEAP_SOURCE_CHUNK_OVERHEAD; in countFree()
283 mspace *msp; in createMspace() local
303 msp = create_contiguous_mspace_with_name(startSize/2, in createMspace()
305 if (msp != NULL) { in createMspace()
309 mspace_set_max_allowed_footprint(msp, startSize); in createMspace()
318 return msp; in createMspace()
322 addNewHeap(HeapSource *hs, mspace *msp, size_t mspAbsoluteMaxSize) in addNewHeap() argument
335 if (msp != NULL) { in addNewHeap()
336 heap.msp = msp; in addNewHeap()
349 heap.msp = createMspace(HEAP_MIN_FREE, heap.absoluteMaxSize, in addNewHeap()
351 if (heap.msp == NULL) { in addNewHeap()
356 (void *)ALIGN_DOWN_TO_PAGE_SIZE(heap.msp), in addNewHeap()
367 mspace *msp = hs->heaps[0].msp; in addNewHeap() local
368 mspace_set_max_allowed_footprint(msp, mspace_footprint(msp)); in addNewHeap()
381 if (msp == NULL) { in addNewHeap()
382 destroy_contiguous_mspace(heap.msp); in addNewHeap()
398 mspace msp; in dvmHeapSourceStartup() local
411 msp = createMspace(startSize, absoluteMaxSize, 0); in dvmHeapSourceStartup()
412 if (msp == NULL) { in dvmHeapSourceStartup()
418 gcHeap = mspace_malloc(msp, sizeof(*gcHeap)); in dvmHeapSourceStartup()
425 hs = mspace_malloc(msp, sizeof(*hs)); in dvmHeapSourceStartup()
440 if (!addNewHeap(hs, msp, absoluteMaxSize)) { in dvmHeapSourceStartup()
454 destroy_contiguous_mspace(msp); in dvmHeapSourceStartup()
531 destroy_contiguous_mspace(heap->msp); in dvmHeapSourceShutdown()
572 value = mspace_footprint(heap->msp); in dvmHeapSourceGetValue()
575 value = mspace_max_allowed_footprint(heap->msp); in dvmHeapSourceGetValue()
666 ptr = mspace_calloc(heap->msp, 1, n); in dvmHeapSourceAlloc()
697 mspace_set_max_allowed_footprint(heap->msp, max); in heapAllocAndGrow()
703 mspace_set_max_allowed_footprint(heap->msp, in heapAllocAndGrow()
704 mspace_footprint(heap->msp)); in heapAllocAndGrow()
784 mspace_free(heap->msp, ptr); in dvmHeapSourceFree()
810 mspace *msp = heap->msp; in dvmHeapSourceFreeList() local
846 if (mspace_merge_objects(msp, merged, ptrs[i]) == NULL) { in dvmHeapSourceFreeList()
847 mspace_free(msp, merged); in dvmHeapSourceFreeList()
852 mspace_free(msp, merged); in dvmHeapSourceFreeList()
932 return mspace_usable_size(heap->msp, ptr); in dvmHeapSourceChunkSize()
999 mspace *msp = hs->heaps[0].msp; in setSoftLimit() local
1000 size_t currentHeapSize = mspace_footprint(msp); in setSoftLimit()
1004 mspace_set_max_allowed_footprint(msp, currentHeapSize); in setSoftLimit()
1010 mspace_set_max_allowed_footprint(msp, softLimit); in setSoftLimit()
1026 mspace *msp = hs->heaps[0].msp; in setIdealFootprint() local
1028 mspace_max_allowed_footprint(msp); in setIdealFootprint()
1060 oldAllowedFootprint, mspace_max_allowed_footprint(msp), in setIdealFootprint()
1061 mspace_max_allowed_footprint(msp) - oldAllowedFootprint, in setIdealFootprint()
1252 newHeapMax = mspace_max_allowed_footprint(heap->msp); in dvmHeapSourceGrowForUtilization()
1317 mspace_trim(heap->msp, 0); in dvmHeapSourceTrim()
1322 mspace_walk_free_pages(heap->msp, releasePagesInRange, in dvmHeapSourceTrim()
1356 mspace_walk_heap(hs->heaps[i-1].msp, callback, arg); in dvmHeapSourceWalk()
1402 currentHeapSize = mspace_max_allowed_footprint(heap->msp); in externalAllocPossible()