Branch: Tag:

2013-10-10

2013-10-10 14:54:16 by Arne Goedeke <el@laramies.com>

block_allocator: fixed --with-debug

535:    while(1) {    if (free_block == NULL) {    it.end = ((char*)BA_LASTBLOCK(it.l, p) + it.l.block_size); + #ifdef PIKE_DEBUG +  if ((char*)it.end < (char*)it.cur) +  Pike_fatal("Free list not sorted in ba_walk.\n"); + #endif    if ((char*)it.end != (char*)it.cur) {    cb(&it, data);    }
545:    }       it.end = free_block; +  free_block = free_block->next; +    #ifdef PIKE_DEBUG -  if (free_block >= free_block->next) +  if ((char*)it.end < (char*)it.cur)    Pike_fatal("Free list not sorted in ba_walk.\n");   #endif -  free_block = free_block->next; -  +     if ((char*)it.end != (char*)it.cur)    cb(&it, data);