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

fix the function name which is not grammatically correct.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nari 2012-10-24 04:14:22 +00:00
parent f0a435c187
commit bda726223f
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
Wed Oct 24 11:57:24 2012 Narihiro Nakamura <authornari@gmail.com> Wed Oct 24 11:57:24 2012 Narihiro Nakamura <authornari@gmail.com>
* gc.c (free_object_aquire): rename to match the behavior of this * gc.c (gc_aquire_free_object): rename to match the behavior of
function. this function.
Wed Oct 24 11:55:19 2012 Koichi Sasada <ko1@atdot.net> Wed Oct 24 11:55:19 2012 Koichi Sasada <ko1@atdot.net>

6
gc.c
View file

@ -360,7 +360,7 @@ static void init_mark_stack(mark_stack_t *stack);
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 *);
static int free_object_aquire(rb_objspace_t *); static int gc_aquire_free_object(rb_objspace_t *);
static void mark_tbl(rb_objspace_t *, st_table *); static void mark_tbl(rb_objspace_t *, st_table *);
static void rest_sweep(rb_objspace_t *); static void rest_sweep(rb_objspace_t *);
static void gc_mark_stacked_objects(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 (UNLIKELY(!has_free_object)) {
if (!free_object_aquire(objspace)) { if (!gc_aquire_free_object(objspace)) {
during_gc = 0; during_gc = 0;
rb_memerror(); rb_memerror();
} }
@ -2044,7 +2044,7 @@ rest_sweep(rb_objspace_t *objspace)
static void gc_marks(rb_objspace_t *objspace); static void gc_marks(rb_objspace_t *objspace);
static int static int
free_object_aquire(rb_objspace_t *objspace) gc_aquire_free_object(rb_objspace_t *objspace)
{ {
int res; int res;