Explorar o código

added assert on invalid mark

ncannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
66003bb6f9
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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;