Skip to content

Commit

Permalink
show more info about imemo_callcache
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Jan 6, 2021
1 parent fa8295c commit 442bd0e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12442,11 +12442,14 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
{
const struct rb_callcache *cc = (const struct rb_callcache *)obj;
VALUE class_path = cc->klass ? rb_class_path_cached(cc->klass) : Qnil;

APPENDF((BUFF_ARGS, "(klass:%s, cme:%s (%p) call:%p",
NIL_P(class_path) ? "??" : RSTRING_PTR(class_path),
vm_cc_cme(cc) ? rb_id2name(vm_cc_cme(cc)->called_id) : "<NULL>",
(void *)vm_cc_cme(cc), (void *)vm_cc_call(cc)));
const rb_callable_method_entry_t *cme = vm_cc_cme(cc);

APPENDF((BUFF_ARGS, "(klass:%s cme:%s%s (%p) call:%p",
NIL_P(class_path) ? (cc->klass ? "??" : "<NULL>") : RSTRING_PTR(class_path),
cme ? rb_id2name(cme->called_id) : "<NULL>",
cme ? (METHOD_ENTRY_INVALIDATED(cme) ? " [inv]" : "") : "",
(void *)cme,
(void *)vm_cc_call(cc)));
break;
}
default:
Expand Down

0 comments on commit 442bd0e

Please sign in to comment.