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();