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

* gc.c (chain_finalized_object): fix precedence.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-02-16 13:10:39 +00:00
parent 2236f6a682
commit a9f6a95530
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Feb 16 22:09:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
* gc.c (chain_finalized_object): fix precedence.
Tue Feb 16 21:32:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
* gc.c (rb_objspace_call_finalizer): always run finalizer at exit,

2
gc.c
View file

@ -2623,7 +2623,7 @@ static int
chain_finalized_object(st_data_t key, st_data_t val, st_data_t arg)
{
RVALUE *p = (RVALUE *)key, **final_list = (RVALUE **)arg;
if (p->as.basic.flags & (FL_FINALIZE|FL_MARK) == FL_FINALIZE) {
if ((p->as.basic.flags & (FL_FINALIZE|FL_MARK)) == FL_FINALIZE) {
if (BUILTIN_TYPE(p) != T_ZOMBIE) {
p->as.free.flags = FL_MARK | T_ZOMBIE; /* remain marked */
RDATA(p)->dfree = 0;