зеркало из https://github.com/github/ruby.git
* 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:
Родитель
e5db83ec65
Коммит
e923b67707
|
@ -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>
|
||||
|
||||
* gc.c (objspace_each_objects, rb_objspace_each_objects): use
|
||||
|
|
2
gc.c
2
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче