Lines Matching refs:size
274 /* Used for a heap size change hysteresis to avoid collecting
279 /* Whenever the effective heap size may have changed,
289 /* See if the heap size has changed enough that we should care
341 static DvmHeapChunk *tryMalloc(size_t size)
349 if (size >= gDvm.heapSizeMax) {
351 "someone's allocating a huge buffer\n", size, size);
361 // Maybe we skip the GC if the size is large and we did one recently
366 hc = dvmHeapSourceAlloc(size + sizeof(DvmHeapChunk));
376 hc = dvmHeapSourceAlloc(size + sizeof(DvmHeapChunk));
384 hc = dvmHeapSourceAllocAndGrow(size + sizeof(DvmHeapChunk));
395 FRACTIONAL_MB(newHeapSize), size);
400 * is really full, really fragmented, or the requested size is
408 size);
410 hc = dvmHeapSourceAllocAndGrow(size + sizeof(DvmHeapChunk));
417 LOGE_HEAP("Out of memory on a %zd-byte allocation.\n", size);
502 void* dvmMalloc(size_t size, int flags)
511 if (size >= 100000) {
512 LOGI("dvmMalloc(%d):\n", size);
560 hc = tryMalloc(size);
608 gDvm.allocProf.allocSize += size;
611 self->allocProf.allocSize += size;
624 gDvm.allocProf.failedAllocSize += size;
627 self->allocProf.failedAllocSize += size;
995 /* Now's a good time to adjust the heap size, since