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

ruby-changes:38939

From: ko1 <ko1@a...>
Date: Thu, 25 Jun 2015 06:53:36 +0900 (JST)
Subject: [ruby-changes:38939] ko1:r51020 (trunk): * gc.c (obj_info): show more details for T_IMEMO/imemo_ment.

ko1	2015-06-25 06:53:07 +0900 (Thu, 25 Jun 2015)

  New Revision: 51020

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

  Log:
    * gc.c (obj_info): show more details for T_IMEMO/imemo_ment.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51019)
+++ ChangeLog	(revision 51020)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 25 06:49:25 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (obj_info): show more details for T_IMEMO/imemo_ment.
+
 Thu Jun 25 06:40:46 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_method.c (rb_method_definition_reset): need a WB for
Index: gc.c
===================================================================
--- gc.c	(revision 51019)
+++ gc.c	(revision 51020)
@@ -8944,7 +8944,8 @@ obj_info(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L8944
 	snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s %s", buff, imemo_name);
 	if (imemo_type(obj) == imemo_ment) {
 	    const rb_method_entry_t *me = &RANY(obj)->as.imemo.ment;
-	    snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s (called_id: %s, type: %d)", buff, rb_id2name(me->called_id), me->def->type);
+	    snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s (called_id: %s, type: %d, alias: %d, class: %s)", buff,
+		     rb_id2name(me->called_id), me->def->type, me->def->alias_count, obj_info(me->klass));
 	}
       }
       default:

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

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