فهرست منبع

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;
 					if( avail > p->free_blocks ) p->free_blocks = avail;
 					avail = 0;
 					avail = 0;
 					next += bits - 1;
 					next += bits - 1;
-#					ifdef GC_DEBUG
 					if( p->sizes[next] == 0 ) hl_fatal("assert");
 					if( p->sizes[next] == 0 ) hl_fatal("assert");
-#					endif
 					next += p->sizes[next];
 					next += p->sizes[next];
 					if( next + nblocks > p->max_blocks ) {
 					if( next + nblocks > p->max_blocks ) {
 						p->next_block = next;
 						p->next_block = next;