зеркало из https://github.com/github/ruby.git
fix method cache debug tool
This commit is contained in:
Родитель
0e79d4cde5
Коммит
04d62e6f62
1
vm.c
1
vm.c
|
@ -3595,7 +3595,6 @@ Init_VM(void)
|
|||
rb_define_singleton_method(rb_cRubyVM, "SDR", sdr, 0);
|
||||
rb_define_singleton_method(rb_cRubyVM, "NSDR", nsdr, 0);
|
||||
rb_define_singleton_method(rb_cRubyVM, "mtbl", vm_mtbl, 2);
|
||||
rb_define_singleton_method(rb_cRubyVM, "mtbl", vm_mtbl, 2);
|
||||
rb_define_singleton_method(rb_cRubyVM, "mtbl2", vm_mtbl2, 2);
|
||||
#else
|
||||
(void)sdr;
|
||||
|
|
|
@ -25,12 +25,12 @@ static enum rb_id_table_iterator_result
|
|||
vm_ccs_dump_i(ID mid, VALUE val, void *data)
|
||||
{
|
||||
const struct rb_class_cc_entries *ccs = (struct rb_class_cc_entries *)val;
|
||||
fprintf(stderr, " | %s (%d) ", rb_id2name(mid), ccs->len);
|
||||
fprintf(stderr, " | %s (len:%d) ", rb_id2name(mid), ccs->len);
|
||||
rp(ccs->cme);
|
||||
|
||||
for (int i=0; i<ccs->len; i++) {
|
||||
fprintf(stderr, " | [%d] ", i); vm_ci_dump(ccs->entries[i].ci);
|
||||
rp_m( " | ", ccs->entries[i].cc);
|
||||
fprintf(stderr, " | [%d]\t", i); vm_ci_dump(ccs->entries[i].ci);
|
||||
rp_m( " | \t", ccs->entries[i].cc);
|
||||
}
|
||||
|
||||
return ID_TABLE_CONTINUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче