pike.git / src / block_allocator.c

version» Context lines:

pike.git/src/block_allocator.c:321:    PIKE_MEMPOOL_FREE(a, ptr, a->l.block_size);   }      #ifdef PIKE_DEBUG   static void print_allocator(const struct block_allocator * a) {    int i;    struct ba_layout l;       for (i = a->size-1, l = ba_get_layout(a, i); i >= 0; ba_half_layout(&l), i--) {    struct ba_page * p = a->pages[i]; -  fprintf(stderr, "page: %p used: %u/%u last: %p p+offset: %p\n", a->pages[i], -  p->h.used, l.blocks, +  fprintf(stderr, "page: %p used: %u/%u*%u bytes last: %p p+offset: %p\n", a->pages[i], +  p->h.used, l.blocks, l.block_size,    BA_BLOCKN(l, p, l.blocks-1), BA_LASTBLOCK(l, p));    }   }      #define Pike_nfatal(n) \    (fprintf(stderr,msg_fatal_error,__FILE__,(long)(n)),debug_fatal)      static void ba_check_ptr(struct block_allocator * a, int page, void * ptr, struct ba_block_header * loc,    int ln) {    struct ba_layout l = ba_get_layout(a, page);