show more info about imemo_callcache
This commit is contained in:
parent
fa8295ccb9
commit
442bd0e92c
Notes:
git
2021-01-06 14:58:14 +09:00
11
gc.c
11
gc.c
@ -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;
|
||||
const rb_callable_method_entry_t *cme = vm_cc_cme(cc);
|
||||
|
||||
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)));
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user