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

* gc.c (gc_lazy_sweep): Variable declarations should be at

the head of block.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2010-10-21 15:03:56 +00:00
parent e5db83ec65
commit e923b67707
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 21 23:58:14 2010 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_lazy_sweep): Variable declarations should be at
the head of block.
Thu Oct 21 23:56:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Oct 21 23:56:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (objspace_each_objects, rb_objspace_each_objects): use * gc.c (objspace_each_objects, rb_objspace_each_objects): use

2
gc.c
View file

@ -2058,11 +2058,11 @@ static int
gc_lazy_sweep(rb_objspace_t *objspace) gc_lazy_sweep(rb_objspace_t *objspace)
{ {
int res; int res;
INIT_GC_PROF_PARAMS;
if (objspace->flags.dont_lazy_sweep) if (objspace->flags.dont_lazy_sweep)
return garbage_collect(objspace); return garbage_collect(objspace);
INIT_GC_PROF_PARAMS;
if (!ready_to_gc(objspace)) return TRUE; if (!ready_to_gc(objspace)) return TRUE;