1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

gc.c: unused function

* gc.c (free_stack_chunks): it is used only when per-VM object space
  is enabled.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-10-03 13:23:30 +00:00
parent 8d53a08ed8
commit 4336caf204

5
gc.c
View file

@ -350,7 +350,6 @@ static void *aligned_malloc(size_t, size_t);
static void aligned_free(void *); static void aligned_free(void *);
static void init_mark_stack(mark_stack_t *stack); static void init_mark_stack(mark_stack_t *stack);
static void free_stack_chunks(mark_stack_t *);
static VALUE lazy_sweep_enable(void); static VALUE lazy_sweep_enable(void);
static int garbage_collect(rb_objspace_t *); static int garbage_collect(rb_objspace_t *);
@ -388,7 +387,7 @@ rb_objspace_alloc(void)
#endif #endif
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
static void aligned_free(void *); static void free_stack_chunks(mark_stack_t *);
void void
rb_objspace_free(rb_objspace_t *objspace) rb_objspace_free(rb_objspace_t *objspace)
@ -2151,6 +2150,7 @@ pop_mark_stack_chunk(mark_stack_t *stack)
stack->index = stack->limit; stack->index = stack->limit;
} }
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
static void static void
free_stack_chunks(mark_stack_t *stack) free_stack_chunks(mark_stack_t *stack)
{ {
@ -2163,6 +2163,7 @@ free_stack_chunks(mark_stack_t *stack)
chunk = next; chunk = next;
} }
} }
#endif
static void static void
push_mark_stack(mark_stack_t *stack, VALUE data) push_mark_stack(mark_stack_t *stack, VALUE data)