From e923b67707d05f0ab55885cf94037fd9aab75876 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 21 Oct 2010 15:03:56 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ gc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 176a111293..a34dbbfe68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 21 23:58:14 2010 Koichi Sasada + + * gc.c (gc_lazy_sweep): Variable declarations should be at + the head of block. + Thu Oct 21 23:56:54 2010 Nobuyoshi Nakada * gc.c (objspace_each_objects, rb_objspace_each_objects): use diff --git a/gc.c b/gc.c index b2be6d2357..6641097558 100644 --- a/gc.c +++ b/gc.c @@ -2058,11 +2058,11 @@ static int gc_lazy_sweep(rb_objspace_t *objspace) { int res; + INIT_GC_PROF_PARAMS; if (objspace->flags.dont_lazy_sweep) return garbage_collect(objspace); - INIT_GC_PROF_PARAMS; if (!ready_to_gc(objspace)) return TRUE;