浏览代码

added assert on invalid mark

ncannasse 6 年之前
父节点
当前提交
66003bb6f9
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/alloc.c

+ 0 - 2
src/alloc.c

@@ -563,9 +563,7 @@ resume:
 					if( avail > p->free_blocks ) p->free_blocks = avail;
 					avail = 0;
 					next += bits - 1;
-#					ifdef GC_DEBUG
 					if( p->sizes[next] == 0 ) hl_fatal("assert");
-#					endif
 					next += p->sizes[next];
 					if( next + nblocks > p->max_blocks ) {
 						p->next_block = next;