Lines Matching refs:bin_num

182 #define ZEND_MM_SRUN(bin_num)            (ZEND_MM_IS_SRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFS…  argument
183 #define ZEND_MM_SRUN_EX(bin_num, count) (ZEND_MM_IS_SRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFS… argument
184 #define ZEND_MM_NRUN(bin_num, offset) (ZEND_MM_IS_SRUN | ZEND_MM_IS_LRUN | ((bin_num) << ZEND_MM… argument
1220 static zend_never_inline void *zend_mm_alloc_small_slow(zend_mm_heap *heap, uint32_t bin_num ZEND_F…
1228 …bin = (zend_mm_bin*)zend_mm_alloc_pages(heap, bin_pages[bin_num], bin_data_size[bin_num] ZEND_FILE…
1230 …bin = (zend_mm_bin*)zend_mm_alloc_pages(heap, bin_pages[bin_num] ZEND_FILE_LINE_RELAY_CC ZEND_FILE…
1239 chunk->map[page_num] = ZEND_MM_SRUN(bin_num);
1240 if (bin_pages[bin_num] > 1) {
1244 chunk->map[page_num+i] = ZEND_MM_NRUN(bin_num, i);
1246 } while (i < bin_pages[bin_num]);
1250 end = (zend_mm_free_slot*)((char*)bin + (bin_data_size[bin_num] * (bin_elements[bin_num] - 1)));
1251 heap->free_slot[bin_num] = p = (zend_mm_free_slot*)((char*)bin + bin_data_size[bin_num]);
1253 p->next_free_slot = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1256 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1260 p = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1267 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1276 static zend_always_inline void *zend_mm_alloc_small(zend_mm_heap *heap, size_t size, int bin_num ZE…
1280 size_t size = heap->size + bin_data_size[bin_num];
1287 if (EXPECTED(heap->free_slot[bin_num] != NULL)) {
1288 zend_mm_free_slot *p = heap->free_slot[bin_num];
1289 heap->free_slot[bin_num] = p->next_free_slot;
1292 …return zend_mm_alloc_small_slow(heap, bin_num ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC…
1296 static zend_always_inline void zend_mm_free_small(zend_mm_heap *heap, void *ptr, int bin_num) argument
1301 heap->size -= bin_data_size[bin_num];
1306 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)ptr + bin_data_size[bin_num] - ZEND_MM_ALIG…
1312 p->next_free_slot = heap->free_slot[bin_num];
1313 heap->free_slot[bin_num] = p;
1334 int bin_num = ZEND_MM_SRUN_BIN_NUM(info); local
1335 …return (zend_mm_debug_info*)((char*)ptr + bin_data_size[bin_num] - ZEND_MM_ALIGNED_SIZE(sizeof(zen…
2016 int bin_num = ZEND_MM_SRUN_BIN_NUM(info); local
2017 int pages_count = bin_pages[bin_num];
2019 if (ZEND_MM_SRUN_FREE_COUNTER(info) == bin_elements[bin_num]) {
2025 chunk->map[i] = ZEND_MM_SRUN(bin_num);
2027 i += bin_pages[bin_num];
2057 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]); local
2058 …= (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * (j + 1) - ZEND…
2060 while (j < bin_elements[bin_num]) {
2072 dbg = (zend_mm_debug_info*)((char*)dbg + bin_data_size[bin_num]);
2075 zend_mm_bitset_reset_range(p->free_map, i, bin_pages[bin_num]);
2088 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]); local
2090 i += bin_pages[bin_num];
2173 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]); local
2174 …= (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
2177 while (j < bin_elements[bin_num]) {
2179 … leak.addr = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * j);
2194 zend_mm_find_leaks(heap, p, i + bin_pages[bin_num], &leak);
2200 dbg = (zend_mm_debug_info*)((char*)dbg + bin_data_size[bin_num]);
2203 i += bin_pages[bin_num];