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

* gc.c (garbage_collect): return now whether there're rooms for new

objects, rather than whether GC run. fixed: [ruby-core:6376]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2005-10-25 04:44:51 +00:00
parent 020df2c92b
commit d8e5ec121a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Oct 25 13:40:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* gc.c (garbage_collect): return now whether there're rooms for new
objects, rather than whether GC run. fixed: [ruby-core:6376]
Tue Oct 25 02:12:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):

2
gc.c
View file

@ -1280,10 +1280,10 @@ garbage_collect(void)
if (dont_gc || during_gc) {
if (!freelist) {
add_heap();
return Qtrue;
}
return Qfalse;
}
if (during_gc) return Qfalse;
during_gc++;
init_mark_stack();