summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-07-09 18:37:03 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2020-07-10 22:42:35 -0400
commitcbf52087a2d4ac3c2db698ddc5b0b023f6bb2eca (patch)
tree842ed5b35d025abc47e54f47c54d7ead80397b1b /internal
parent021cec938af55a7ef368eadc99a6e3ff2252510e (diff)
Fix missing imemo cases in objspace_dump by refactoring
imemo_callcache and imemo_callinfo were not handled by the `objspace` module and were showing up as "unknown" in the dump. Extract the code for naming imemos and use that in both the GC and the `objspace` module.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3304
Diffstat (limited to 'internal')
-rw-r--r--internal/imemo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/imemo.h b/internal/imemo.h
index 812b2a42ca..29318f10cd 100644
--- a/internal/imemo.h
+++ b/internal/imemo.h
@@ -150,6 +150,7 @@ VALUE rb_imemo_new_debug(enum imemo_type type, VALUE v1, VALUE v2, VALUE v3, VAL
#else
VALUE rb_imemo_new(enum imemo_type type, VALUE v1, VALUE v2, VALUE v3, VALUE v0);
#endif
+const char *rb_imemo_name(enum imemo_type type);
RUBY_SYMBOL_EXPORT_END
static inline enum imemo_type