Branch: Tag:

2014-02-11

2014-02-11 10:24:28 by Arne Goedeke <el@laramies.com>

block_allocator: do not execute empty loop

508:   }      static INLINE void ba_list_defined(struct block_allocator * a, struct ba_block_header * b) { + #ifdef USE_VALGRIND    while (b && b != BA_ONE) {    PIKE_MEMPOOL_ALLOC(a, b, a->l.block_size);    PIKE_MEM_RW_RANGE(b, sizeof(struct ba_block_header));    b = b->next;    } -  + #endif   }      static INLINE void ba_list_undefined(struct block_allocator * a, struct ba_block_header * b) { -  + #ifdef USE_VALGRIND    while (b && b != BA_ONE) {    struct ba_block_header * next = b->next;    PIKE_MEMPOOL_FREE(a, b, a->l.block_size);    b = next;    } -  + #endif   }      /*