Lines Matching refs:real_size
247 size_t real_size; /* current size of allocated pages */ member
1009 if (UNEXPECTED(ZEND_MM_CHUNK_SIZE > heap->limit - heap->real_size)) {
1032 …ry (allocated %zu bytes) at %s:%d (tried to allocate %zu bytes)", heap->real_size, __zend_filename…
1034 …t of memory (allocated %zu bytes) (tried to allocate %zu bytes)", heap->real_size, ZEND_MM_PAGE_SI…
1041 size_t size = heap->real_size + ZEND_MM_CHUNK_SIZE;
1043 heap->real_size = size;
1047 heap->real_size += ZEND_MM_CHUNK_SIZE;
1130 heap->real_size -= ZEND_MM_CHUNK_SIZE;
1372 size_t real_size = size; local
1378 if (UNEXPECTED(size < real_size)) {
1379 …nteger overflow in memory allocation (%zu + %zu)", ZEND_MM_ALIGNED_SIZE(real_size), ZEND_MM_ALIGNE…
1387 dbg->size = real_size;
1398 dbg->size = real_size;
1407 size = real_size;
1489 size_t real_size; local
1494 real_size = size;
1499 size = real_size;
1512 …zend_mm_change_huge_block_size(heap, ptr, new_size, real_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LI…
1521 heap->real_size -= old_size - new_size;
1527 …zend_mm_change_huge_block_size(heap, ptr, new_size, real_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LI…
1535 if (UNEXPECTED(new_size - old_size > heap->limit - heap->real_size)) {
1536 if (zend_mm_gc(heap) && new_size - old_size <= heap->limit - heap->real_size) {
1551 heap->real_size += new_size - old_size;
1554 heap->real_peak = MAX(heap->real_peak, heap->real_size);
1559 …zend_mm_change_huge_block_size(heap, ptr, new_size, real_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LI…
1593 size_t real_size = size; local
1640 dbg->size = real_size;
1657 dbg->size = real_size;
1677 dbg->size = real_size;
1704 dbg->size = real_size;
1716 size = real_size;
1827 if (UNEXPECTED(new_size > heap->limit - heap->real_size)) {
1828 if (zend_mm_gc(heap) && new_size <= heap->limit - heap->real_size) {
1850 …ry (allocated %zu bytes) at %s:%d (tried to allocate %zu bytes)", heap->real_size, __zend_filename…
1852 …(heap, "Out of memory (allocated %zu bytes) (tried to allocate %zu bytes)", heap->real_size, size);
1864 size_t size = heap->real_size + new_size;
1866 heap->real_size = size;
1876 heap->real_size += new_size;
1889 heap->real_size -= size;
1929 heap->real_size = ZEND_MM_CHUNK_SIZE;
2360 heap->real_size = (heap->cached_chunks_count + 1) * ZEND_MM_CHUNK_SIZE;
2725 if (UNEXPECTED(memory_limit < heap->real_size)) {
2726 if (memory_limit >= heap->real_size - heap->cached_chunks_count * ZEND_MM_CHUNK_SIZE) {
2733 heap->real_size -= ZEND_MM_CHUNK_SIZE;
2734 } while (memory_limit < heap->real_size);
2757 return AG(mm_heap)->real_size;
2781 AG(mm_heap)->real_peak = AG(mm_heap)->real_size;
3080 heap->real_size = ZEND_MM_CHUNK_SIZE;