summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-03 13:23:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-03 13:23:30 +0000
commit4336caf20422cdaeb99e519e20ff9214667e594d (patch)
treeb950439b5d43ec0f5797bac48fd9dc932b258032 /gc.c
parent8d53a08ed81ae1dbaabef79fcf0b0e759de2e82f (diff)
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
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 394bf6e97f..5f1f5fa8d4 100644
--- a/gc.c
+++ b/gc.c
@@ -350,7 +350,6 @@ static void *aligned_malloc(size_t, size_t);
static void aligned_free(void *);
static void init_mark_stack(mark_stack_t *stack);
-static void free_stack_chunks(mark_stack_t *);
static VALUE lazy_sweep_enable(void);
static int garbage_collect(rb_objspace_t *);
@@ -388,7 +387,7 @@ rb_objspace_alloc(void)
#endif
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
-static void aligned_free(void *);
+static void free_stack_chunks(mark_stack_t *);
void
rb_objspace_free(rb_objspace_t *objspace)
@@ -2151,6 +2150,7 @@ pop_mark_stack_chunk(mark_stack_t *stack)
stack->index = stack->limit;
}
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
static void
free_stack_chunks(mark_stack_t *stack)
{
@@ -2163,6 +2163,7 @@ free_stack_chunks(mark_stack_t *stack)
chunk = next;
}
}
+#endif
static void
push_mark_stack(mark_stack_t *stack, VALUE data)