ruby-changes:38718
From: ko1 <ko1@a...>
Date: Mon, 8 Jun 2015 05:11:59 +0900 (JST)
Subject: [ruby-changes:38718] ko1:r50799 (trunk): * gc.c (obj_info): print method id for T_IMEMO/ment.
ko1 2015-06-08 05:11:36 +0900 (Mon, 08 Jun 2015) New Revision: 50799 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50799 Log: * gc.c (obj_info): print method id for T_IMEMO/ment. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 50798) +++ ChangeLog (revision 50799) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jun 8 05:09:58 2015 Koichi Sasada <ko1@a...> + + * gc.c (obj_info): print method id for T_IMEMO/ment. + Sun Jun 7 07:05:43 2015 Kazuki Tanaka <gogotanaka@r...> * Move test cases from test/ruby/test_complex.rb to test/test_cmath.rb Index: gc.c =================================================================== --- gc.c (revision 50798) +++ gc.c (revision 50799) @@ -8924,7 +8924,8 @@ obj_info(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L8924 } snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s %s", buff, imemo_name); if (imemo_type(obj) == imemo_ment) { - snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s (type: %d)", buff, RANY(obj)->as.imemo.ment.def->type); + 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); } } default: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/