summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--gc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5639509bd3..ad0ea0cb5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
Wed Oct 24 11:57:24 2012 Narihiro Nakamura <authornari@gmail.com>
- * gc.c (gc_aquire_free_object): rename to match the behavior of
+ * gc.c (gc_prepare_free_objects): rename to match the behavior of
this function.
Wed Oct 24 11:55:19 2012 Koichi Sasada <ko1@atdot.net>
diff --git a/gc.c b/gc.c
index 036477e997..0e3413f8f4 100644
--- a/gc.c
+++ b/gc.c
@@ -360,7 +360,7 @@ static void init_mark_stack(mark_stack_t *stack);
static VALUE lazy_sweep_enable(void);
static int garbage_collect(rb_objspace_t *);
-static int gc_aquire_free_object(rb_objspace_t *);
+static int gc_prepare_free_objects(rb_objspace_t *);
static void mark_tbl(rb_objspace_t *, st_table *);
static void rest_sweep(rb_objspace_t *);
static void gc_mark_stacked_objects(rb_objspace_t *);
@@ -666,7 +666,7 @@ newobj(VALUE klass, VALUE flags)
}
if (UNLIKELY(!has_free_object)) {
- if (!gc_aquire_free_object(objspace)) {
+ if (!gc_prepare_free_objects(objspace)) {
during_gc = 0;
rb_memerror();
}
@@ -2044,7 +2044,7 @@ rest_sweep(rb_objspace_t *objspace)
static void gc_marks(rb_objspace_t *objspace);
static int
-gc_aquire_free_object(rb_objspace_t *objspace)
+gc_prepare_free_objects(rb_objspace_t *objspace)
{
int res;