Browse Source

added assert on invalid mark

ncannasse 6 năm trước cách đây
mục cha
commit
66003bb6f9
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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;