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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-06-24 21:53:07 +00:00
parent 988267d462
commit 04deaf5d51
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Jun 25 06:49:25 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (obj_info): show more details for T_IMEMO/imemo_ment.
Thu Jun 25 06:40:46 2015 Koichi Sasada <ko1@atdot.net>
* vm_method.c (rb_method_definition_reset): need a WB for

3
gc.c
View File

@ -8944,7 +8944,8 @@ obj_info(VALUE obj)
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: