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

ruby-changes:37783

From: ko1 <ko1@a...>
Date: Fri, 6 Mar 2015 07:34:16 +0900 (JST)
Subject: [ruby-changes:37783] ko1:r49864 (trunk): * gc.c (obj_info): show node name too.

ko1	2015-03-06 07:34:10 +0900 (Fri, 06 Mar 2015)

  New Revision: 49864

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

  Log:
    * gc.c (obj_info): show node name too.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49863)
+++ ChangeLog	(revision 49864)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Mar  6 07:33:03 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (obj_info): show node name too.
+
 Fri Mar  6 07:00:44 2015  Koichi Sasada  <ko1@a...>
 
 	* internal.h: remove struct method_table_wrapper.
Index: gc.c
===================================================================
--- gc.c	(revision 49863)
+++ gc.c	(revision 49864)
@@ -8650,6 +8650,10 @@ obj_info(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L8650
 
 #ifdef HAVE_VA_ARGS_MACRO
     switch (BUILTIN_TYPE(obj)) {
+      case T_NODE:
+	snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s (%s)", buff,
+		 ruby_node_name(nd_type(obj)));
+	break;
       case T_ARRAY:
 	snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s [%s%s] len: %d", buff,
 		 C(ARY_EMBED_P(obj),  "E"),

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

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