зеркало из https://github.com/github/ruby.git
* gc.c (obj_info): print method id for T_IMEMO/ment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b2dd608a6b
Коммит
0d3591f250
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 8 05:09:58 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (obj_info): print method id for T_IMEMO/ment.
|
||||
|
||||
Sun Jun 7 07:05:43 2015 Kazuki Tanaka <gogotanaka@ruby-lang.org>
|
||||
|
||||
* Move test cases from test/ruby/test_complex.rb to test/test_cmath.rb
|
||||
|
|
3
gc.c
3
gc.c
|
@ -8924,7 +8924,8 @@ obj_info(VALUE obj)
|
|||
}
|
||||
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче