Skip to content

Commit

Permalink
objspace_dump.c: don't dump class of T_IMEMO
Browse files Browse the repository at this point in the history
They don't actually have a class.
  • Loading branch information
byroot committed Dec 14, 2022
1 parent cca54c8 commit 1df6d0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/objspace/objspace_dump.c
Expand Up @@ -383,7 +383,11 @@ dump_object(VALUE obj, struct dump_config *dc)

dc->cur_obj = obj;
dc->cur_obj_references = 0;
dc->cur_obj_klass = BUILTIN_TYPE(obj) == T_NODE ? 0 : RBASIC_CLASS(obj);
if (BUILTIN_TYPE(obj) == T_NODE || BUILTIN_TYPE(obj) == T_IMEMO) {
dc->cur_obj_klass = 0;
} else {
dc->cur_obj_klass = RBASIC_CLASS(obj);
}

if (dc->partial_dump && (!ainfo || ainfo->generation < dc->since)) {
return;
Expand Down

0 comments on commit 1df6d0e

Please sign in to comment.