Lines Matching defs:maximumSize
74 size_t maximumSize;
113 size_t maximumSize;
289 static mspace createMspace(void *base, size_t startSize, size_t maximumSize)
303 maximumSize, /*locked=*/false, base);
314 startSize/2, maximumSize, strerror(errno));
324 static bool addInitialHeap(HeapSource *hs, mspace msp, size_t maximumSize)
332 hs->heaps[0].maximumSize = maximumSize;
335 hs->heaps[0].limit = hs->heapBase + hs->heaps[0].maximumSize;
367 if (overhead + HEAP_MIN_FREE >= hs->maximumSize) {
370 overhead, hs->maximumSize);
374 heap.maximumSize = hs->growthLimit - overhead;
377 heap.limit = heap.base + heap.maximumSize;
378 heap.msp = createMspace(base, HEAP_MIN_FREE, hs->maximumSize - overhead);
385 hs->heaps[0].maximumSize = overhead;
472 static bool allocMarkStack(GcMarkStack *stack, size_t maximumSize)
478 stack->length = maximumSize * sizeof(Object*) /
503 GcHeap* dvmHeapSourceStartup(size_t startSize, size_t maximumSize,
514 if (!(startSize <= growthLimit && growthLimit <= maximumSize)) {
516 startSize, maximumSize, growthLimit);
524 length = ALIGN_UP_TO_PAGE_SIZE(maximumSize);
533 msp = createMspace(base, startSize, maximumSize);
553 hs->maximumSize = maximumSize;
575 if (!allocMarkStack(&gcHeap->markContext.stack, hs->maximumSize)) {
838 size_t max = heap->maximumSize;
1071 gHs->growthLimit = gHs->maximumSize;
1073 gHs->heaps[0].maximumSize = gHs->maximumSize - overhead;
1074 gHs->heaps[0].limit = gHs->heaps[0].base + gHs->heaps[0].maximumSize;
1146 size_t maximumSize = getMaximumSize(hs);
1147 if (max > maximumSize) {
1150 FRACTIONAL_MB(maximumSize));
1151 max = maximumSize;