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:
parent
8d53a08ed8
commit
4336caf204
1 changed files with 3 additions and 2 deletions
5
gc.c
5
gc.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue