ruby-changes:38931
From: ko1 <ko1@a...>
Date: Wed, 24 Jun 2015 16:57:14 +0900 (JST)
Subject: [ruby-changes:38931] ko1:r51012 (trunk): * gc.c (gc_mark_children): add additional debug code for #11244.
ko1 2015-06-24 16:56:52 +0900 (Wed, 24 Jun 2015) New Revision: 51012 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51012 Log: * gc.c (gc_mark_children): add additional debug code for #11244. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51011) +++ ChangeLog (revision 51012) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jun 24 16:54:11 2015 Koichi Sasada <ko1@a...> + + * gc.c (gc_mark_children): add additional debug code for #11244. + Wed Jun 24 16:05:42 2015 Eric Wong <e@8...> * string.c (rb_str_justify): use RB_GC_GUARD Index: gc.c =================================================================== --- gc.c (revision 51011) +++ gc.c (revision 51012) @@ -4304,6 +4304,10 @@ gc_mark_children(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L4304 if (!RCLASS_EXT(obj)) break; mark_tbl(objspace, RCLASS_IV_TBL(obj)); mark_const_tbl(objspace, RCLASS_CONST_TBL(obj)); + + /* TODO: remove it. check code for Bug #11244 */ + if (RB_TYPE_P(RCLASS_SUPER(obj), T_NONE)) rb_bug("gc_mark_children: super is T_NONE (%s)", obj_info(obj)); + gc_mark(objspace, RCLASS_SUPER((VALUE)obj)); break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/