Lines Matching refs:i

895 	int i;  in zend_mm_init()  local
904 for (i = 0; i < ZEND_MM_NUM_BUCKETS; i++) { in zend_mm_init()
905 heap->cache_stat[i].count = 0; in zend_mm_init()
909 for (i = 0; i < ZEND_MM_NUM_BUCKETS; i++) { in zend_mm_init()
913 heap->large_free_buckets[i] = NULL; in zend_mm_init()
934 int i; in zend_mm_free_cache() local
936 for (i = 0; i < ZEND_MM_NUM_BUCKETS; i++) { in zend_mm_free_cache()
937 if (heap->cache[i]) { in zend_mm_free_cache()
938 zend_mm_free_block *mm_block = heap->cache[i]; in zend_mm_free_cache()
967 heap->cache[i] = NULL; in zend_mm_free_cache()
969 heap->cache_stat[i].count = 0; in zend_mm_free_cache()
979 size_t i = 0; in zend_mm_random() local
1002 while (i < size && buf[i] != 0) { in zend_mm_random()
1003 i++; in zend_mm_random()
1005 if (i == size) { in zend_mm_random()
1016 while (i < size && buf[i] != 0) { in zend_mm_random()
1017 i++; in zend_mm_random()
1019 if (i == size) { in zend_mm_random()
1028 while (i < size) { in zend_mm_random()
1030 buf[i] = ((unsigned char)rand()) ^ t; in zend_mm_random()
1031 } while (buf[i] == 0); in zend_mm_random()
1032 t = buf[i++] << 1; in zend_mm_random()
1048 int i; in zend_mm_startup_ex()
1059 for (i = 0; i < ZEND_MM_MAX_SMALL_SIZE; i++) { in zend_mm_startup_ex()
1060i, (i == ZEND_MM_MIN_SIZE?'*':' '), (long)ZEND_MM_TRUE_SIZE(i), ZEND_MM_SMALL_SIZE(ZEND_MM_TRUE_SI… in zend_mm_startup_ex()
1129 int i; in zend_mm_startup_ex() local
1137 for (i = 0; i < ZEND_MM_NUM_BUCKETS; i++) { in zend_mm_startup_ex()
1150 if (mm_heap->large_free_buckets[i]) { in zend_mm_startup_ex()
1151 mm_heap->large_free_buckets[i]->parent = &mm_heap->large_free_buckets[i]; in zend_mm_startup_ex()
1165 int i; in zend_mm_startup() local
1173 i = 0; in zend_mm_startup()
1175 for (i = 0; mem_handlers[i].name; i++) { in zend_mm_startup()
1176 if (strcmp(mem_handlers[i].name, mem_type) == 0) { in zend_mm_startup()
1180 if (!mem_handlers[i].name) { in zend_mm_startup()
1187 for (i = 0; mem_handlers[i].name; i++) { in zend_mm_startup()
1188 fprintf(stderr, " '%s'\n", mem_handlers[i].name); in zend_mm_startup()
1197 handlers = &mem_handlers[i]; in zend_mm_startup()
1497 int i; in zend_mm_check_ptr() local
1504 i = END_MAGIC_SIZE; in zend_mm_check_ptr()
1505 while (--i >= 0) { in zend_mm_check_ptr()
1506 if (overflow_ptr[i]!=magic_ptr[i]) { in zend_mm_check_ptr()
1527 int i; in zend_mm_check_ptr() local
1535 for (i=0; i < END_MAGIC_SIZE; i++) { in zend_mm_check_ptr()
1536 if (overflow_ptr[i]!=magic_ptr[i]) { in zend_mm_check_ptr()
1630 int i,j; in zend_mm_shutdown() local
1640 i = ZEND_MM_BUCKET_INDEX(true_size); in zend_mm_shutdown()
1646 if (j > i) { in zend_mm_shutdown()
1656 hit += heap->cache_stat[i].hit; in zend_mm_shutdown()
1657 miss += heap->cache_stat[i].miss; in zend_mm_shutdown()
1658 …%8d\n", i, (int)min_size, (int)max_size, ZEND_MM_TRUE_SIZE(max_size), heap->cache_stat[i].max_coun… in zend_mm_shutdown()