[前][次][番号順一覧][スレッド一覧]

ruby-changes:31972

From: charliesome <ko1@a...>
Date: Sat, 7 Dec 2013 22:01:23 +0900 (JST)
Subject: [ruby-changes:31972] charliesome:r44051 (trunk): * gc.c (gc_mark_children): use nd_clss and nd_next for code clarity

charliesome	2013-12-07 22:01:17 +0900 (Sat, 07 Dec 2013)

  New Revision: 44051

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44051

  Log:
    * gc.c (gc_mark_children): use nd_clss and nd_next for code clarity

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 44050)
+++ gc.c	(revision 44051)
@@ -3796,8 +3796,8 @@ gc_mark_children(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L3796
 
 	  case NODE_CREF:
 	    gc_mark(objspace, obj->as.node.nd_refinements);
-	    gc_mark(objspace, (VALUE)obj->as.node.u1.node);
-	    ptr = (VALUE)obj->as.node.u3.node;
+	    gc_mark(objspace, (VALUE)obj->as.node.nd_clss);
+	    ptr = (VALUE)obj->as.node.nd_next;
 	    goto again;
 
 	  default:		/* unlisted NODE */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]