Nicolas Cannasse 5 سال پیش
والد
کامیت
f75392b60e
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/allocator.c

+ 2 - 0
src/allocator.c

@@ -426,6 +426,7 @@ static int gc_allocator_get_block_id( gc_pheader *page, void *block ) {
 	return bid;
 }
 
+#ifdef GC_INTERIOR_POINTERS
 static int gc_allocator_get_block_interior( gc_pheader *page, void **block ) {
 	int offset = (int)((unsigned char*)*block - page->base);
 	int bid = offset / page->alloc.block_size;
@@ -438,6 +439,7 @@ static int gc_allocator_get_block_interior( gc_pheader *page, void **block ) {
 	*block = page->base + bid * page->alloc.block_size;
 	return bid;
 }
+#endif
 
 static void gc_allocator_after_mark() {
 	gc_call_finalizers();